function config_perms_themes_access in Custom Permissions 6
Access callback for each theme's settings
1 string reference to 'config_perms_themes_access'
- config_perms_menu_alter in ./
config_perms.module - Implementation of hook_menu_alter().
File
- ./
config_perms.module, line 80 - Adds more granular permissions for items under 'administer site configuration'.
Code
function config_perms_themes_access($theme) {
return (user_access('administer themes') || user_access('administer site configuration')) && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}