function variable_realm_admin_access in Variable 7
Check permission for administering realm
1 string reference to 'variable_realm_admin_access'
- variable_realm_admin_menu in variable_realm_admin/
variable_realm_admin.module - Implements hook_menu().
File
- variable_realm_admin/
variable_realm_admin.module, line 66 - Variable Realms Admin module
Code
function variable_realm_admin_access($realm_name, $property = 'title') {
if ($info = variable_realm_info($realm_name)) {
return !empty($info[$property]) && user_access('administer site configuration');
}
}