You are here

public function AckMenuMap::managedMenus in Access Control Kit 7

Implements AckMenuHandlerInterface::managedMenus().

Overrides AckMenuHandlerInterface::managedMenus

1 call to AckMenuMap::managedMenus()
AckMenuMap::objectFormAlter in ack_menu/handlers/ack_menu_map.inc
Overrides AccessControlKitHandler::objectFormAlter().

File

ack_menu/handlers/ack_menu_map.inc, line 309
Contains the handler class for mapping menu links to access realms.

Class

AckMenuMap
Controls access to menu links based on realm mapping.

Code

public function managedMenus() {
  $names = menu_get_menus();
  $managed = array();
  foreach ($this->menus as $menu) {
    $managed[$menu] = $names[$menu];
  }
  return $managed;
}