path_test.module 410 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * @file
  4. * Helper module for the path tests.
  5. */
  6. /**
  7. * Resets the path test results.
  8. */
  9. function path_test_reset() {
  10. variable_set('path_test_results', array());
  11. }
  12. /**
  13. * Implements hook_path_update().
  14. */
  15. function path_test_path_update($path) {
  16. $results = variable_get('path_test_results', array());
  17. $results['hook_path_update'] = $path;
  18. variable_set('path_test_results', $results);
  19. }