function _system_themes_access
7.x system.module | _system_themes_access($theme) |
6.x system.module | _system_themes_access($theme) |
Menu item access callback - only admin or enabled themes can be accessed.
1 string reference to '_system_themes_access'
- system_menu in drupal-6.x/
modules/ system/ system.module - Implementation of hook_menu().
File
- drupal-6.x/
modules/ system/ system.module, line 524 - Configuration system that lets administrators modify the workings of the site.
Code
function _system_themes_access($theme) {
return user_access('administer site configuration') && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}