function _drupal_theme_access

7.x theme.inc _drupal_theme_access($theme)

Helper function for determining access to a theme.

See also

drupal_theme_access()

1 call to _drupal_theme_access()
drupal_theme_access in drupal-7.x/includes/theme.inc
Determines if a theme is available to use.

File

drupal-7.x/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);
}