1 path_test.module path_test_path_insert($path)

Implements hook_path_insert().

File

core/modules/simpletest/tests/path_test.module, line 24
Helper module for the path tests.

Code

function path_test_path_insert($path) {
  backdrop_set_message('path_test_path_insert(): ' . $path['alias'] . ' => ' . $path['source']);

  // Save the path to a variable so the test routine can use the path ID.
  // See PathHooksTestCase::testPathHooks().
  state_set('path_test_inserted_path', $path);
}