function _system_test_first_shutdown_function in Drupal 7
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/system_test/system_test.module \_system_test_first_shutdown_function()
- 9 core/modules/system/tests/modules/system_test/system_test.module \_system_test_first_shutdown_function()
Dummy shutdown function which registers another shutdown function.
1 string reference to '_system_test_first_shutdown_function'
- system_test_page_shutdown_functions in modules/
simpletest/ tests/ system_test.module - A simple page callback which adds a register shutdown function.
File
- modules/
simpletest/ tests/ system_test.module, line 397
Code
function _system_test_first_shutdown_function($arg1, $arg2) {
// Output something, page has already been printed and the session stored
// so we can't use drupal_set_message.
print t('First shutdown function, arg1 : @arg1, arg2: @arg2', array(
'@arg1' => $arg1,
'@arg2' => $arg2,
));
drupal_register_shutdown_function('_system_test_second_shutdown_function', $arg1, $arg2);
}