function page_theme_get_theme_name in Page Theme 7
Same name and namespace in other branches
- 6 page_theme.module \page_theme_get_theme_name()
- 7.2 page_theme.module \page_theme_get_theme_name()
4 calls to page_theme_get_theme_name()
- page_theme_admin_delete in ./
page_theme.admin.inc - Menu callback; deletes a theme.
- page_theme_admin_edit in ./
page_theme.admin.inc - Menu callback; edits a theme.
- page_theme_admin_overview in ./
page_theme.admin.inc - Menu callback; lists all defined themes.
- page_theme_get_themes_options in ./
page_theme.module
File
- ./
page_theme.module, line 195 - This module 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'] ? t('!theme (disabled)', array(
'!theme' => $themes[$theme]['name'],
)) : $themes[$theme]['name'];
}
else {
$name = $expand ? t('!theme (not available)', array(
'!theme' => $theme,
)) : $theme;
}
return $name;
}