function page_theme_get_theme_name in Page Theme 7.2
Same name and namespace in other branches
- 6 page_theme.module \page_theme_get_theme_name()
- 7 page_theme.module \page_theme_get_theme_name()
1 call to page_theme_get_theme_name()
- page_theme_admin_overview in ./
page_theme.admin.inc - Menu callback; lists all defined rules.
File
- ./
page_theme.module, line 181 - Allows to use different themes than the site default on specific pages.
Code
function page_theme_get_theme_name($theme, $expand = FALSE) {
$themes = page_theme_get_themes();
if (isset($themes[$theme])) {
$name = $expand && !$themes[$theme]['status'] ? check_plain($themes[$theme]['name']) . '<br><small>' . t('(Disabled)') . '</small>' : $themes[$theme]['name'];
}
else {
$name = $expand ? $theme . '<br><small>' . t('(Not available)') . '</small>' : $theme;
}
return $name;
}