function _drupal_theme_access

Helper function for determining access to a theme.

See also

drupal_theme_access()

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

File

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