function views_handler_argument_string::option_definition in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 handlers/views_handler_argument_string.inc \views_handler_argument_string::option_definition()
- 7.3 handlers/views_handler_argument_string.inc \views_handler_argument_string::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_handler_argument::option_definition
File
- handlers/
views_handler_argument_string.inc, line 21
Class
- views_handler_argument_string
- Basic argument handler to implement string arguments that may have length limits.
Code
function option_definition() {
$options = parent::option_definition();
$options['glossary'] = array(
'default' => FALSE,
);
$options['ignorecase'] = array(
'default' => FALSE,
);
$options['limit'] = array(
'default' => 0,
);
$options['case'] = array(
'default' => 'none',
);
$options['path_case'] = array(
'default' => 'none',
);
$options['transform_dash'] = array(
'default' => FALSE,
);
$options['break_phrase'] = array(
'default' => FALSE,
);
if (!empty($this->definition['many to one'])) {
$options['add_table'] = array(
'default' => FALSE,
);
$options['require_value'] = array(
'default' => FALSE,
);
}
return $options;
}