function views_handler_field_custom::option_definition

Same name in other branches
  1. 7.x-3.x handlers/views_handler_field_custom.inc \views_handler_field_custom::option_definition()

Overrides views_handler_field::option_definition

File

handlers/views_handler_field_custom.inc, line 13

Class

views_handler_field_custom
A handler to provide a field that is completely custom by the administrator.

Code

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,
    );
    $options['hide_alter_empty'] = array(
        'default' => FALSE,
    );
    return $options;
}