public function views_handler_sort_menu_hierarchy::options_form in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_sort_menu_hierarchy.inc \views_handler_sort_menu_hierarchy::options_form()
Basic options for all sort criteria
Overrides views_handler_sort::options_form
File
- handlers/
views_handler_sort_menu_hierarchy.inc, line 33 - Definition of views_handler_sort_menu_hierarchy.
Class
- views_handler_sort_menu_hierarchy
- Sort in menu hierarchy order.
Code
public 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'],
);
}