You are here

function dhtml_menu_settings in DHTML Menu 5

Same name and namespace in other branches
  1. 8 dhtml_menu.admin.inc \dhtml_menu_settings()
  2. 6.4 dhtml_menu.admin.inc \dhtml_menu_settings()
  3. 6.2 dhtml_menu.admin.inc \dhtml_menu_settings()
  4. 6.3 dhtml_menu.admin.inc \dhtml_menu_settings()
  5. 7 dhtml_menu.admin.inc \dhtml_menu_settings()

DHTML Menu Settings page.

1 string reference to 'dhtml_menu_settings'
dhtml_menu_menu in ./dhtml_menu.module
Implementation of hook_menu().

File

./dhtml_menu.module, line 73
DHTML menus

Code

function dhtml_menu_settings() {
  $form['dhtml_menu_use_effects'] = array(
    '#type' => 'checkbox',
    '#title' => t('jQuery slide effect'),
    '#description' => t('Menu slides when it opens and closes.'),
    '#default_value' => variable_get('dhtml_menu_use_effects', 1),
  );

  //   $form['dhtml_menu_bullet'] = array(
  //     '#type'          => 'checkbox',
  //     '#title'         => t('Item bullets'),
  //     '#description'   => t('The menu only collapses/exapand when clicking over the item bullet. WARNING: some themes do not show bullets!'),
  //     '#default_value' => variable_get('dhtml_menu_bullet', 0)
  //   );
  $form['dhtml_menu_duplicated'] = array(
    '#type' => 'textarea',
    '#title' => t('Duplicated menu items'),
    '#description' => t('You can specify a list of menu items that should be displayed twice: Once as a parent item that expands and collapses the sub-menu and again as its own child item, which points directly to the page (the parent items still links on double-click). Enter one internal path (like "admin") on each line. To specify a custom link text, put it after the path, separated by a space.'),
    '#rows' => 4,
    '#default_value' => variable_get('dhtml_menu_duplicated', 'admin'),
  );
  return system_settings_form($form);
}