function views_plugin_display::set_option
Intelligently set an option either from this display or from the default display, if directed to do so.
7 calls to views_plugin_display::set_option()
- views_plugin_display::init in plugins/
views_plugin_display.inc - views_plugin_display::options_submit in plugins/
views_plugin_display.inc - Perform any necessary changes to the form values prior to storage.
- views_plugin_display::override_option in plugins/
views_plugin_display.inc - Set an option and force it to be an override.
- views_plugin_display_attachment::options_submit in plugins/
views_plugin_display_attachment.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
- views_plugin_display_block::options_submit in plugins/
views_plugin_display_block.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
File
-
plugins/
views_plugin_display.inc, line 1122
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
public function set_option($option, $value) {
if ($this->is_defaulted($option)) {
return $this->default_display
->set_option($option, $value);
}
// Set this in two places: On the handler where we'll notice it but also on
// the display object so it gets saved. This should only be a temporary fix.
$this->display->display_options[$option] = $value;
return $this->options[$option] = $value;
}