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 includes/theme.inc
Determines if a theme is available to use.

File

includes/theme.inc, line 62

Code

function _drupal_theme_access($theme) {
    $admin_theme = variable_get('admin_theme');
    return !empty($theme->status) || $admin_theme && $theme->name == $admin_theme;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.