function admin_menu_toolbar_form_admin_menu_theme_settings_alter

nittany7 admin_menu_toolbar.module admin_menu_toolbar_form_admin_menu_theme_settings_alter(&$form)
cis7 admin_menu_toolbar.module admin_menu_toolbar_form_admin_menu_theme_settings_alter(&$form)
mooc7 admin_menu_toolbar.module admin_menu_toolbar_form_admin_menu_theme_settings_alter(&$form)

Implements hook_form_FORMID_alter().

File

modules/contrib/admin_menu/admin_menu_toolbar/admin_menu_toolbar.module, line 13
Renders Administration menu like Toolbar (core) module.

Code

function admin_menu_toolbar_form_admin_menu_theme_settings_alter(&$form) {
  // Add the shortcut links as component on behalf of Shortcut module.
  $form['plugins']['admin_menu_components']['#options']['shortcut.links'] = t('Shortcuts');
  // The shortcut bar consists of two elements, so we target their class names
  // instead of cluttering the markup with additional IDs.
  $form['plugins']['admin_menu_components']['shortcut.links']['#attributes']['rel'] = '.shortcut-toggle, .shortcut-toolbar';
}