drupal_theme_access
- Versions
- 7
drupal_theme_access($theme)
Determines if a theme is available to use.
Parameters
$theme An object representing the theme to check.
Return value
Boolean TRUE if the theme is enabled or is the site administration theme; FALSE otherwise.
Code
includes/theme.inc, line 48
<?php
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 