1.20.x system_test.module system_test_backdrop_set_message()

Sets two messages and removes the first one before the messages are displayed.

File

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

Code

function system_test_backdrop_set_message() {
  // Set two messages.
  backdrop_set_message('First message (removed).');
  backdrop_set_message('Second message (not removed).');

  // Remove the first.
  unset($_SESSION['messages']['status'][0]);

  return '';
}