function views_plugin_display_page::option_definition in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_display_page.inc \views_plugin_display_page::option_definition()
- 7.3 plugins/views_plugin_display_page.inc \views_plugin_display_page::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.
Overrides views_plugin_display::option_definition
1 call to views_plugin_display_page::option_definition()
- views_plugin_display_feed::option_definition in plugins/
views_plugin_display_feed.inc - Information about options for all kinds of purposes will be held here.
1 method overrides views_plugin_display_page::option_definition()
- views_plugin_display_feed::option_definition in plugins/
views_plugin_display_feed.inc - Information about options for all kinds of purposes will be held here.
File
- plugins/
views_plugin_display_page.inc, line 19 - Contains the page display plugin.
Class
- views_plugin_display_page
- The plugin that handles a full page.
Code
function option_definition() {
$options = parent::option_definition();
$options['path'] = array(
'default' => '',
);
$options['menu'] = array(
'contains' => array(
'type' => array(
'default' => 'none',
),
// Do not translate menu and title as menu system will.
'title' => array(
'default' => '',
'translatable' => FALSE,
),
'description' => array(
'default' => '',
'translatable' => FALSE,
),
'weight' => array(
'default' => 0,
),
'name' => array(
'default' => variable_get('menu_default_node_menu', 'navigation'),
),
),
);
$options['tab_options'] = array(
'contains' => array(
'type' => array(
'default' => 'none',
),
// Do not translate menu and title as menu system will.
'title' => array(
'default' => '',
'translatable' => FALSE,
),
'description' => array(
'default' => '',
'translatable' => FALSE,
),
'weight' => array(
'default' => 0,
),
'name' => array(
'default' => 'navigation',
),
),
);
return $options;
}