1 theme_test.module theme_test_exit()

Implements hook_exit().

File

core/modules/simpletest/tests/theme_test.module, line 89

Code

function theme_test_exit() {
  if (arg(0) == 'user') {
    // Register a fake registry loading callback. If it gets called by
    // theme_get_registry(), the registry has not been initialized yet.
    _theme_registry_callback('_theme_test_load_registry', array());
    print theme_get_registry() ? 'registry initialized' : 'registry not initialized';
  }
}