diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:53:31 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:53:31 -0800 |
commit | a11889c035b4e7b10af70caf2cba9fcc9201f9e1 (patch) | |
tree | f844fe9cada0d661cd9e7ac98b2cf26933502f10 /modules/simpletest/tests/path_test.module | |
parent | 300a007c71b79692f5a48caeeba690b1eb3cefab (diff) | |
download | brdo-a11889c035b4e7b10af70caf2cba9fcc9201f9e1.tar.gz brdo-a11889c035b4e7b10af70caf2cba9fcc9201f9e1.tar.bz2 |
Issue #998256 by justafish, Albert Volkman, Dave Reid, no_commit_credit: Please let modules know about the original URL alias in hook_path_update().
Diffstat (limited to 'modules/simpletest/tests/path_test.module')
-rw-r--r-- | modules/simpletest/tests/path_test.module | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/simpletest/tests/path_test.module b/modules/simpletest/tests/path_test.module new file mode 100644 index 000000000..d3dc80e22 --- /dev/null +++ b/modules/simpletest/tests/path_test.module @@ -0,0 +1,23 @@ +<?php + +/** + * @file + * Helper module for the path tests. + */ + +/** + * Resets the path test results. + */ +function path_test_reset() { + variable_set('path_test_results', array()); +} + +/** + * Implements hook_path_update(). + */ +function path_test_path_update($path) { + $results = variable_get('path_test_results', array()); + $results['hook_path_update'] = $path; + variable_set('path_test_results', $results); +} + |