You are here

function _ack_menu_managed_menus in Access Control Kit 7

Helper function to find the list of menus that are managed by access schemes.

Return value

array An array with the machine-readable names as the keys, and human-readable titles as the values.

2 calls to _ack_menu_managed_menus()
ack_menu_menu_access in ack_menu/ack_menu.module
Access callback for managing a menu.
ack_menu_permission in ack_menu/ack_menu.module
Implements hook_permission().

File

ack_menu/ack_menu.module, line 552
The ACK menu module.

Code

function _ack_menu_managed_menus() {
  $managed = array();
  foreach (access_object_schemes('menu_link') as $scheme) {
    $managed += $scheme->handlers['menu_link']
      ->managedMenus();
  }
  return $managed;
}