_drupal_theme_access

7 theme.inc _drupal_theme_access($theme)
8 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()

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);
}
Login or register to post comments