You are here

function ack_menu_admin_access in Access Control Kit 7

Access callback for the menu admin pages.

Parameters

object $account: (optional) A user account. Defaults to the currently logged-in user.

Return value

bool TRUE if the user account has access to the menu admin pages.

4 calls to ack_menu_admin_access()
ack_menu_form_node_form_alter in ack_menu/ack_menu.module
Implements hook_form_BASE_FORM_ID_alter().
ack_menu_overview_page in ack_menu/ack_menu.pages.inc
Menu page callback to list the realms wherein the user may manage menu links.
ack_menu_realm_access in ack_menu/ack_menu.module
Access callback for managing realm links.
_ack_menu_user_realms in ack_menu/ack_menu.module
Helper function to find the realms where the user is allowed to manage links.
1 string reference to 'ack_menu_admin_access'
ack_menu_menu_alter in ack_menu/ack_menu.module
Implements hook_menu_alter().

File

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

Code

function ack_menu_admin_access($account = NULL) {
  return user_access('administer menu', $account) || user_access('administer ack_menu', $account);
}