function _session_test_set_message
Menu callback, sets a message to me displayed on the following page.
1 call to _session_test_set_message()
- _session_test_set_message_but_dont_save in modules/
simpletest/ tests/ session_test.module - Menu callback, sets a message but call drupal_save_session(FALSE).
1 string reference to '_session_test_set_message'
- session_test_menu in modules/
simpletest/ tests/ session_test.module - Implements hook_menu().
File
-
modules/
simpletest/ tests/ session_test.module, line 140
Code
function _session_test_set_message() {
drupal_set_message(t('This is a dummy message.'));
print t('A message was set.');
// Do not return anything, so the current request does not result in a themed
// page with messages. The message will be displayed in the following request
// instead.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.