function admin_menu_dropdown_settings_combos in Admin Menu Hider 6
Same name and namespace in other branches
- 5 admin_menu_dropdown.module \admin_menu_dropdown_settings_combos()
1 call to admin_menu_dropdown_settings_combos()
- admin_menu_dropdown_form_alter in ./
admin_menu_dropdown.module - Implementation of hook_form_alter().
File
- ./
admin_menu_dropdown.module, line 86 - Makes drupal administration menu able to be hidden or shown by pressing key combo
Code
function admin_menu_dropdown_settings_combos($type) {
switch ($type) {
case 'key':
$options = array(
'' => 'None',
'65' => 'A',
'66' => 'B',
'67' => 'C',
'68' => 'D',
'69' => 'E',
'70' => 'F',
'71' => 'G',
'72' => 'H',
'73' => 'I',
'74' => 'J',
'75' => 'K',
'76' => 'L',
'77' => 'M',
'78' => 'N',
'79' => 'O',
'80' => 'P',
'81' => 'Q',
'82' => 'R',
'83' => 'S',
'84' => 'T',
'85' => 'U',
'86' => 'V',
'87' => 'W',
'88' => 'X',
'89' => 'Y',
'90' => 'Z',
);
break;
case 'modifier':
$options = array(
'ctrl + alt' => 'ctrl + alt',
'ctrl + shift' => 'ctrl + shift',
'ctrl + alt + shift' => 'ctrl + alt + shift',
);
break;
}
return $options;
}