summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/common_test.module
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2016-02-24 14:19:52 -0500
committerDavid Rothstein <drothstein@gmail.com>2016-02-24 14:19:52 -0500
commit2f54b101bf722849e456d859876b27b90ad7e479 (patch)
tree9fdf1d34a03ec83b95a4fbcced22bb1b599f76d0 /modules/simpletest/tests/common_test.module
parentaaf2d59820d7daf70c3acdde20c0e13d618a4e07 (diff)
downloadbrdo-2f54b101bf722849e456d859876b27b90ad7e479.tar.gz
brdo-2f54b101bf722849e456d859876b27b90ad7e479.tar.bz2
Drupal 7.43
Diffstat (limited to 'modules/simpletest/tests/common_test.module')
-rw-r--r--modules/simpletest/tests/common_test.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/simpletest/tests/common_test.module b/modules/simpletest/tests/common_test.module
index 674a49446..2eb8cd5d2 100644
--- a/modules/simpletest/tests/common_test.module
+++ b/modules/simpletest/tests/common_test.module
@@ -93,6 +93,15 @@ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code)
}
/**
+ * Implements hook_init().
+ */
+function common_test_init() {
+ if (variable_get('common_test_redirect_current_path', FALSE)) {
+ drupal_goto(current_path());
+ }
+}
+
+/**
* Print destination query parameter.
*/
function common_test_destination() {