You are here

function nice_menus_admin_settings in Nice Menus 6

Same name and namespace in other branches
  1. 5 nice_menus.module \nice_menus_admin_settings()
  2. 6.2 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.admin.inc, line 11
Functionality for Nice Menus administration.

Code

function nice_menus_admin_settings() {
  $form['nice_menus_number'] = array(
    '#type' => 'textfield',
    '#description' => t('The total number of independent Nice menus blocks you want. Enter a number between 0 and 99. If you set this to 0, you will have no blocks created but you can still use the Nice menus theme functions directly in your theme.'),
    '#default_value' => variable_get('nice_menus_number', '2'),
    '#size' => 2,
  );
  $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),
  );

  // Custom validation to make sure the user is entering numbers.
  $form['#validate'][] = 'nice_menus_settings_validate';
  return system_settings_form($form);
}