function views_menu_children_argument::options_form in Views Menu Node Children Filter 7
Build the options form.
Overrides views_handler_argument_numeric::options_form
File
- includes/
views_menu_children_argument.inc, line 31
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['default_action']["#options"]['root_nodes'] = t('Display root nodes only.');
unset($form['not']);
unset($form['break_phrase']);
// Add the target menu config element.
self::buildMenuSelectForm($form, $form_state, $this->options['target_menu']);
// Add the checkbox to conditionally honor the menu item enabled state.
$form['filter_disabled_items'] = array(
'#type' => 'checkbox',
'#title' => t('Hide nodes whose menu link is disabled?'),
'#return_value' => "1",
'#default_value' => !empty($this->options['filter_disabled_items']),
);
}