You are here

function nice_menus_admin_settings in Nice Menus 5

Same name and namespace in other branches
  1. 6.2 nice_menus.admin.inc \nice_menus_admin_settings()
  2. 6 nice_menus.admin.inc \nice_menus_admin_settings()
  3. 7.3 nice_menus.admin.inc \nice_menus_admin_settings()
  4. 7.2 nice_menus.admin.inc \nice_menus_admin_settings()

Settings form as implemented by hook_menu

1 string reference to 'nice_menus_admin_settings'
nice_menus_menu in ./nice_menus.module
Implemention of hook_menu().

File

./nice_menus.module, line 100

Code

function nice_menus_admin_settings() {
  $form['nice_menus_number'] = array(
    '#type' => 'select',
    '#title' => t('Number of Nice Menus'),
    '#description' => t('The total number of independent nice menus (blocks) you want.'),
    '#default_value' => variable_get('nice_menus_number', '2'),
    '#options' => drupal_map_assoc(array(
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
    )),
  );
  $form['nice_menus_ie'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable IE support'),
    '#description' => t('This will add necessary JavaScript for Nice Menus to work properly in Internet Explorer.'),
    '#default_value' => variable_get('nice_menus_ie', 1),
  );
  return system_settings_form($form);
}