You are here

function ack_menu_permission in Access Control Kit 7

Implements hook_permission().

File

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

Code

function ack_menu_permission() {
  $menus = implode(', ', _ack_menu_managed_menus());
  $schemes = implode(', ', access_object_schemes('menu_link', TRUE));
  return array(
    'administer ack_menu' => array(
      'title' => t('Administer menus for all schemes'),
      'description' => t('Manage the links in the following access scheme-controlled menus: %menus.', array(
        '%menus' => $menus,
      )),
    ),
    'ack manage menu links' => array(
      'title' => t('Manage menu links in assigned access realms'),
      'description' => t('This permission only applies to the following access schemes: %schemes.', array(
        '%schemes' => $schemes,
      )),
    ),
  );
}