function _drupal_theme_access in Drupal 7
Helper function for determining access to a theme.
See also
1 call to _drupal_theme_access()
- drupal_theme_access in includes/
theme.inc - Determines if a theme is available to use.
File
- includes/
theme.inc, line 62 - The theme system, which controls the output of Drupal.
Code
function _drupal_theme_access($theme) {
$admin_theme = variable_get('admin_theme');
return !empty($theme->status) || $admin_theme && $theme->name == $admin_theme;
}