You are here

function menu_select_config_form in Menu Select 7

Config form for 'admin/config/content/menu-select'.

See also

menu_select_menu().

1 string reference to 'menu_select_config_form'
menu_select_menu in ./menu_select.module
Implements hook_menu().

File

./menu_select.module, line 237
Expands the node menu select field functionality by adding filters and an expandable hierarchy.

Code

function menu_select_config_form($form, $form_state) {
  $form['menu_select_cut_off'] = array(
    '#title' => t('Auto-expansion cut off'),
    '#description' => t('The minimum number of menu items in a tree required to have the tree collapsed by default. Set to -1 to disable.'),
    '#type' => 'textfield',
    '#element_validate' => array(
      'element_validate_number',
    ),
    '#default_value' => variable_get('menu_select_cut_off', 30),
    '#size' => 4,
  );
  $form['menu_select_search_enabled'] = array(
    '#title' => t('Enable autocomplete search'),
    '#description' => t('By default the search field is disabled because a core patch is required. If you wish to use the search field visit <a href="http://drupal.org/node/365241#comment-6314864">http://drupal.org/node/365241#comment-6314864</a> and apply the core patch. Once done, check this box and submit this form.'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('menu_select_search_enabled', 0),
  );
  return system_settings_form($form);
}