Implements hook_exit().

File

modules/simpletest/tests/theme_test.module, line 99

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';
  }
}