| 7 theme.inc | drupal_theme_access($theme) |
| 8 theme.inc | drupal_theme_access($theme) |
Determines if a theme is available to use.
Parameters
$theme: Either the name of a theme or a full theme object.
Return value
Boolean TRUE if the theme is enabled or is the site administration theme; FALSE otherwise.
5 calls to drupal_theme_access()
1 string reference to 'drupal_theme_access'
File
- includes/
theme.inc, line 47 - The theme system, which controls the output of Drupal.
Code
function drupal_theme_access($theme) {
if (is_object($theme)) {
return _drupal_theme_access($theme);
}
else {
$themes = list_themes();
return isset($themes[$theme]) && _drupal_theme_access($themes[$theme]);
}
}
Login or register to post comments