Provides a theme reference field.
How can I change the current theme based on the theme selected for a node?
/**
* Implements hook_custom_theme().
*/
function MODULE_custom_theme() {
// set the theme based on field_article_theme
$node = menu_get_object();
if (isset($node->field_article_theme[LANGUAGE_NONE][0]['name'])) {
$theme = $node->field_article_theme[LANGUAGE_NONE][0]['name'];
return $theme;
}
}
Supporting organizations:
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.7 sites report using this module
- Created by shadcn on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

