function views_object::option_definition

3.x base.inc views_object::option_definition()
2.x base.inc views_object::option_definition()

Information about options for all kinds of purposes will be held here.

'option_name' => array(
 - 'default' => default value,
 - 'translatable' => TRUE/FALSE (wrap in t() on export if true),
 - 'contains' => array of items this contains, with its own defaults, etc.
     If contains is set, the default will be ignored and assumed to
     be array()

 ),
 

Each option may have any of the following functions:

  • export_option_OPTIONNAME -- Special export handling if necessary.
  • translate_option_OPTIONNAME -- Special handling for translating data within the option, if necessary.
10 calls to views_object::option_definition()
views_handler_argument::option_definition in handlers/views_handler_argument.inc
Information about options for all kinds of purposes will be held here.
views_handler_field::option_definition in handlers/views_handler_field.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter::option_definition in handlers/views_handler_filter.inc
Information about options for all kinds of purposes will be held here.
views_handler_relationship::option_definition in handlers/views_handler_relationship.inc
Information about options for all kinds of purposes will be held here.
views_handler_sort::option_definition in handlers/views_handler_sort.inc
Information about options for all kinds of purposes will be held here.

... See full list

9 methods override views_object::option_definition()
views_handler_argument::option_definition in handlers/views_handler_argument.inc
Information about options for all kinds of purposes will be held here.
views_handler_field::option_definition in handlers/views_handler_field.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter::option_definition in handlers/views_handler_filter.inc
Information about options for all kinds of purposes will be held here.
views_handler_relationship::option_definition in handlers/views_handler_relationship.inc
Information about options for all kinds of purposes will be held here.
views_handler_sort::option_definition in handlers/views_handler_sort.inc
Information about options for all kinds of purposes will be held here.

... See full list

File

includes/base.inc, line 33
Provides the basic object definitions used by plugins and handlers.

Class

views_object
Basic definition for many views objects

Code

function option_definition() {
  return array();
}