1 views_handler_sort_menu_hierarchy.inc | views_handler_sort_menu_hierarchy::options_form(&$form, &$form_state) |
Basic options for all sort criteria
Overrides views_handler_sort::options_form
File
- core/
modules/ views/ handlers/ views_handler_sort_menu_hierarchy.inc, line 25 - Definition of views_handler_sort_menu_hierarchy.
Class
- views_handler_sort_menu_hierarchy
- Sort in menu hierarchy order.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['sort_within_level'] = array(
'#type' => 'checkbox',
'#title' => t('Sort within each hierarchy level'),
'#description' => t('Enable this to sort the items within each level of the hierarchy by weight and title. Warning: this may produce a slow query.'),
'#default_value' => $this->options['sort_within_level'],
);
}