function views_handler_sort::option_definition

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

Overrides views_handler::option_definition

2 calls to views_handler_sort::option_definition()
views_handler_sort_date::option_definition in handlers/views_handler_sort_date.inc
Information about options for all kinds of purposes will be held here.
views_handler_sort_menu_hierarchy::option_definition in handlers/views_handler_sort_menu_hierarchy.inc
Information about options for all kinds of purposes will be held here.
2 methods override views_handler_sort::option_definition()
views_handler_sort_date::option_definition in handlers/views_handler_sort_date.inc
Information about options for all kinds of purposes will be held here.
views_handler_sort_menu_hierarchy::option_definition in handlers/views_handler_sort_menu_hierarchy.inc
Information about options for all kinds of purposes will be held here.

File

handlers/views_handler_sort.inc, line 27

Class

views_handler_sort
Base sort handler that has no options and performs a simple sort

Code

function option_definition() {
    $options = parent::option_definition();
    $options['order'] = array(
        'default' => 'ASC',
    );
    $options['exposed'] = array(
        'default' => FALSE,
    );
    $options['expose'] = array(
        'contains' => array(
            'label' => array(
                'default' => '',
                'translatable' => TRUE,
            ),
        ),
    );
    return $options;
}