You are here

function _system_themes_access in Drupal 7

Same name and namespace in other branches
  1. 6 modules/system/system.module \_system_themes_access()

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

1 string reference to '_system_themes_access'
system_menu in modules/system/system.module
Implements hook_menu().

File

modules/system/system.module, line 1710
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);
}