function views_ifempty_handler_field::option_definition in Views If Empty 7
Same name and namespace in other branches
- 6 handlers/views_ifempty_handler_field.inc \views_ifempty_handler_field::option_definition()
Set default values for form elements.
Overrides views_handler_field::option_definition
File
- includes/
views/ handlers/ views_ifempty_handler_field.inc, line 13 - A views handler to output an alterate field when a field is empty.
Class
- views_ifempty_handler_field
- @file A views handler to output an alterate field when a field is empty.
Code
function option_definition() {
$options = parent::option_definition();
// Never display the label of this field.
$options['label']['default'] = NULL;
$options['emptyfield'] = array(
'default' => '',
);
$options['outputfield'] = array(
'default' => '',
);
$options['reverse'] = array(
'default' => FALSE,
);
return $options;
}