function views_plugin_display::is_defaulted
Same name in other branches
- 6.x-3.x plugins/views_plugin_display.inc \views_plugin_display::is_defaulted()
Determine if a given option is set to use the default or current display.
Return value
TRUE for the default display.
4 calls to views_plugin_display::is_defaulted()
- views_plugin_display::export_option in plugins/
views_plugin_display.inc - Override of export_option()
- views_plugin_display::get_option in plugins/
views_plugin_display.inc - Intelligently get an option either from this or default display.
- views_plugin_display::get_plugin in plugins/
views_plugin_display.inc - Get the instance of a plugin, for example style or row.
- views_plugin_display::set_option in plugins/
views_plugin_display.inc - Intelligently set an option either from this display or from the default display, if directed to do so.
File
-
plugins/
views_plugin_display.inc, line 908
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
public function is_defaulted($option) {
return !$this->is_default_display() && !empty($this->default_display) && !empty($this->options['defaults'][$option]);
}