function views_object::altered_option_definition in Views (for Drupal 7) 7.3
Collect this handler's option definition and alter them, ready for use.
Return value
array Returns the options of this handler/plugin after allowing for alters.
See also
hook_views_plugin_option_definition_alter()
hook_views_handler_option_definition_alter()
4 calls to views_object::altered_option_definition()
- views_object::export_options in includes/
base.inc - views_object::set_default_options in includes/
base.inc - Set default options.
- views_object::unpack_options in includes/
base.inc - Unpack options over our existing defaults, drilling down into arrays so that defaults don't get totally blown away.
- views_object::unpack_translatables in includes/
base.inc - Unpacks each handler to store translatable texts.
File
- includes/
base.inc, line 70 - Definition of views_object.
Class
- views_object
- Provides the basic object definitions used by plugins and handlers.
Code
function altered_option_definition() {
$definition = $this
->option_definition();
if (!empty($this->is_plugin)) {
// Trigger hook_views_plugin_option_definition_alter().
drupal_alter('views_plugin_option_definition', $definition, $this);
}
else {
// Trigger hook_views_handler_option_definition_alter().
drupal_alter('views_handler_option_definition', $definition, $this);
}
return $definition;
}