function menu_test_custom_theme in Drupal 7
Implement hook_custom_theme().
Return value
The name of the custom theme to use for the current page.
File
- modules/
simpletest/ tests/ menu_test.module, line 464 - Dummy module implementing hook menu.
Code
function menu_test_custom_theme() {
// If an appropriate variable has been set in the database, request the theme
// that is stored there. Otherwise, do not attempt to dynamically set the
// theme.
if ($theme = variable_get('menu_test_hook_custom_theme_name', FALSE)) {
return $theme;
}
}