1 system_test.module _system_test_first_shutdown_function($arg1, $arg2)

Dummy shutdown function which registers another shutdown function.

File

core/modules/simpletest/tests/system_test.module, line 418
Test module for system functions.

Code

function _system_test_first_shutdown_function($arg1, $arg2) {
  // The page has already been printed, so we are unable to affect its output.
  // Print something (which won't show up).
  $output = format_string('First shutdown function, arg1 : @arg1, arg2: @arg2', array('@arg1' => $arg1, '@arg2' => $arg2));
  print $output;
  watchdog('shutdown', $output);
  backdrop_register_shutdown_function('_system_test_second_shutdown_function', $arg1, $arg2);
}