function views_plugin_display::is_defaulted

3.x views_plugin_display.inc views_plugin_display::is_defaulted($option)
2.x views_plugin_display.inc views_plugin_display::is_defaulted($option)

Determine if a given option is set to use the default display or the 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 display or from the default display, if directed to do so.
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 810
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function is_defaulted($option) {
  return !$this->is_default_display() && !empty($this->default_display) && !empty($this->options['defaults'][$option]);
}