function views_plugin_display::is_defaulted

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_display.inc \views_plugin_display::is_defaulted()

Determine if a given option is set to use the default display or the current display

Return value

TRUE for the default display

5 calls to views_plugin_display::is_defaulted()
views_plugin_display::add_override_button in plugins/views_plugin_display.inc
Add an override button for a given section, allowing the user to change whether this info is stored on the default display or on the current display.
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 730

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]);
}