On this page
function drupal_theme_access
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.
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]);
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/drupal_theme_access/7.x