function views_handler_argument_string::option_definition

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

Overrides views_handler_argument::option_definition

File

handlers/views_handler_argument_string.inc, line 21

Class

views_handler_argument_string
Basic argument handler to implement string arguments that may have length limits.

Code

function option_definition() {
    $options = parent::option_definition();
    $options['glossary'] = array(
        'default' => FALSE,
    );
    $options['ignorecase'] = array(
        'default' => FALSE,
    );
    $options['limit'] = array(
        'default' => 0,
    );
    $options['case'] = array(
        'default' => 'none',
    );
    $options['path_case'] = array(
        'default' => 'none',
    );
    $options['transform_dash'] = array(
        'default' => FALSE,
    );
    $options['break_phrase'] = array(
        'default' => FALSE,
    );
    if (!empty($this->definition['many to one'])) {
        $options['add_table'] = array(
            'default' => FALSE,
        );
        $options['require_value'] = array(
            'default' => FALSE,
        );
    }
    return $options;
}