You are here

function bigmenu_settings in Big Menu 7

Admin settings form.

1 string reference to 'bigmenu_settings'
bigmenu_menu in ./bigmenu.module
Declare admin links and AJAX callbacks.

File

./bigmenu.admin.inc, line 207
Administrative page callbacks for bigmenu module.

Code

function bigmenu_settings($form, &$form_state) {
  $form['bigmenu_settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Settings'),
  );
  $form['bigmenu_settings']['bigmenu_depth'] = array(
    '#type' => 'select',
    '#title' => t('Big Menu Depth'),
    '#description' => t('This setting controls how many levels are generated at a time when showing children of a menu item.'),
    '#required' => TRUE,
    '#default_value' => variable_get('bigmenu_depth', 1),
    '#options' => array(
      1 => '1',
      2 => '2',
      3 => '3',
    ),
  );
  return system_settings_form($form);
}