function views_handler_field_custom::option_definition
Overrides views_handler_field::option_definition
File
-
handlers/
views_handler_field_custom.inc, line 25
Class
- views_handler_field_custom
- A handler to provide a field that is completely custom by the administrator.
Code
public function option_definition() {
$options = parent::option_definition();
// Override the alter text option to always alter the text.
$options['alter']['contains']['alter_text'] = array(
'default' => TRUE,
'bool' => TRUE,
);
$options['hide_alter_empty'] = array(
'default' => FALSE,
'bool' => TRUE,
);
return $options;
}