function domain_content_menu_check in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_content/domain_content.module \domain_content_menu_check()
- 7.3 domain_content/domain_content.module \domain_content_menu_check()
Access control for menu items. There may be another way to do this in Drupal 6.
Parameters
$check: The access check value passed from hook_menu().
1 string reference to 'domain_content_menu_check'
- domain_content_menu in domain_content/
domain_content.module - Implements hook_menu()
File
- domain_content/
domain_content.module, line 103 - Editorial overview module.
Code
function domain_content_menu_check() {
if (user_access('administer nodes')) {
return TRUE;
}
if (user_access('edit domain content') || user_access('review content for all domains')) {
return TRUE;
}
return FALSE;
}