You are here

function common_test_init in Drupal 7

Implements hook_init().

File

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

Code

function common_test_init() {
  if (variable_get('common_test_redirect_current_path', FALSE)) {
    drupal_goto(current_path());
  }
  if (variable_get('common_test_link_to_current_path', FALSE)) {
    drupal_set_message(l('link which should point to the current path', current_path()));
  }
}