function views_plugin_exposed_form::option_definition in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 7.3 plugins/views_plugin_exposed_form.inc \views_plugin_exposed_form::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_object::option_definition
1 call to views_plugin_exposed_form::option_definition()
- views_plugin_exposed_form_input_required::option_definition in plugins/
views_plugin_exposed_form_input_required.inc - Information about options for all kinds of purposes will be held here.
1 method overrides views_plugin_exposed_form::option_definition()
- views_plugin_exposed_form_input_required::option_definition in plugins/
views_plugin_exposed_form_input_required.inc - Information about options for all kinds of purposes will be held here.
File
- plugins/
views_plugin_exposed_form.inc, line 31
Class
- views_plugin_exposed_form
- The base plugin to handle exposed filter forms.
Code
function option_definition() {
$options = parent::option_definition();
$options['submit_button'] = array(
'default' => 'Apply',
'translatable' => TRUE,
);
$options['reset_button'] = array(
'default' => FALSE,
'bool' => TRUE,
);
$options['reset_button_label'] = array(
'default' => 'Reset',
'translatable' => TRUE,
);
$options['exposed_sorts_label'] = array(
'default' => 'Sort by',
'translatable' => TRUE,
);
$options['sort_asc_label'] = array(
'default' => 'Asc',
'translatable' => TRUE,
);
$options['sort_desc_label'] = array(
'default' => 'Desc',
'translatable' => TRUE,
);
if (module_exists('ctools')) {
$options['autosubmit'] = array(
'default' => FALSE,
);
$options['autosubmit_hide'] = array(
'default' => FALSE,
);
}
return $options;
}