function views_handler_filter::option_definition

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

Overrides views_handler::option_definition

6 calls to views_handler_filter::option_definition()
views_handler_filter_boolean_operator::option_definition in handlers/views_handler_filter_boolean_operator.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_in_operator::option_definition in handlers/views_handler_filter_in_operator.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_node_tnid::option_definition in modules/translation/views_handler_filter_node_tnid.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_numeric::option_definition in handlers/views_handler_filter_numeric.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_search::option_definition in modules/search/views_handler_filter_search.inc
Information about options for all kinds of purposes will be held here.

... See full list

6 methods override views_handler_filter::option_definition()
views_handler_filter_boolean_operator::option_definition in handlers/views_handler_filter_boolean_operator.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_in_operator::option_definition in handlers/views_handler_filter_in_operator.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_node_tnid::option_definition in modules/translation/views_handler_filter_node_tnid.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_numeric::option_definition in handlers/views_handler_filter_numeric.inc
Information about options for all kinds of purposes will be held here.
views_handler_filter_search::option_definition in modules/search/views_handler_filter_search.inc
Information about options for all kinds of purposes will be held here.

... See full list

File

handlers/views_handler_filter.inc, line 58

Class

views_handler_filter
Base class for filters.

Code

function option_definition() {
    $options = parent::option_definition();
    $options['operator'] = array(
        'default' => '=',
    );
    $options['value'] = array(
        'default' => '',
    );
    $options['group'] = array(
        'default' => '1',
    );
    $options['exposed'] = array(
        'default' => FALSE,
    );
    $options['expose'] = array(
        'contains' => array(
            'operator' => array(
                'default' => FALSE,
            ),
            'limit_operators' => array(
                'default' => FALSE,
            ),
            'available_operators' => array(
                'default' => array(),
            ),
            'label' => array(
                'default' => '',
                'translatable' => TRUE,
            ),
            'use_operator' => array(
                'default' => 0,
            ),
            'operator' => array(
                'default' => '',
            ),
            'identifier' => array(
                'default' => '',
            ),
            'optional' => array(
                'default' => 1,
            ),
            'remember' => array(
                'default' => 0,
            ),
            'single' => array(
                'default' => 1,
            ),
        ),
    );
    return $options;
}