You are here

function admin_menu_dropdown_behaviors in Admin Menu Hider 5.2

Same name and namespace in other branches
  1. 6.2 admin_menu_dropdown.module \admin_menu_dropdown_behaviors()
  2. 7.2 admin_menu_dropdown.module \admin_menu_dropdown_behaviors()
2 calls to admin_menu_dropdown_behaviors()
admin_menu_dropdown_form_alter in ./admin_menu_dropdown.module
Implementation of hook_form_alter().
admin_menu_dropdown_init in ./admin_menu_dropdown.module
Implementation of hook_init().

File

./admin_menu_dropdown.module, line 128
Adds the ability to show/hide the Drupal Administration Menu via a selected behavior

Code

function admin_menu_dropdown_behaviors() {
  foreach (module_invoke_all('amd_behavior') as $behavior => $data) {
    $behaviors['list'][$behavior] = $data['title'];
    $behaviors['data'][$behavior] = $data;
  }
  return $behaviors;
}