1 common_test.module common_test_init()

Implements hook_init().

File

core/modules/simpletest/tests/common_test.module, line 109
Helper module for the Common tests.

Code

function common_test_init() {
  if (state_get('common_test_redirect_current_path', FALSE)) {
    backdrop_goto(current_path());
  }
  if (state_get('common_test_link_to_current_path', FALSE)) {
    backdrop_set_message(l('link which should point to the current path', current_path()));
  }
}