function views_handler_field_boolean::option_definition

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

Overrides views_handler_field::option_definition

File

handlers/views_handler_field_boolean.inc, line 20

Class

views_handler_field_boolean
A handler to provide proper displays for booleans.

Code

function option_definition() {
    $options = parent::option_definition();
    $options['type'] = array(
        'default' => 'yes-no',
    );
    $options['not'] = array(
        'definition bool' => 'reverse',
    );
    return $options;
}