function views_object::export_option_always
3.x base.inc | views_object::export_option_always($indent, $prefix, $storage, $option, $definition, $parents) |
Always exports the option, regardless of the default value.
File
- includes/
base.inc, line 265 - Provides the basic object definitions used by plugins and handlers.
Class
- views_object
- Basic definition for many views objects.
Code
function export_option_always($indent, $prefix, $storage, $option, $definition, $parents) {
// If there is no default, the option will always be exported.
unset($definition['default']);
// Unset our export method to prevent recursion.
unset($definition['export']);
return $this->export_option($indent, $prefix, $storage, $option, $definition, $parents);
}