function ack_menu_access in Access Control Kit 7
Access callback for the realm menu manager.
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 realm menu manager.
2 calls to ack_menu_access()
- ack_menu_form_node_form_alter in ack_menu/
ack_menu.module - Implements hook_form_BASE_FORM_ID_alter().
- ack_menu_realm_access in ack_menu/
ack_menu.module - Access callback for managing realm links.
1 string reference to 'ack_menu_access'
- ack_menu_menu in ack_menu/
ack_menu.module - Implements hook_menu().
File
- ack_menu/
ack_menu.module, line 183 - The ACK menu module.
Code
function ack_menu_access($account = NULL) {
return user_access('ack manage menu links', $account) || user_access('administer ack_menu', $account) || user_access('administer menu', $account);
}