1 menu_test.module menu_test_custom_theme()

Implement hook_custom_theme().

Return value

The name of the custom theme to use for the current page.:


core/modules/simpletest/tests/menu_test.module, line 485
Dummy module implementing hook menu.


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 = state_get('menu_test_hook_custom_theme_name', FALSE)) {
    return $theme;