function _system_themes_access

7.x system.module _system_themes_access($theme)

Menu item access callback - only admin or enabled themes can be accessed.

3 string references to '_system_themes_access'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
system_menu in drupal/modules/system/system.module
Implements hook_menu().

File

drupal/modules/system/system.module, line 1695
Configuration system that lets administrators modify the workings of the site.

Code

function _system_themes_access($theme) {
  return user_access('administer themes') && drupal_theme_access($theme);
}