2 * Implements hook_menu_get_item_alter().
4 function {{ machine_name }}_menu_get_item_alter(&$router_item, $path, $original_map) {
5 // When retrieving the router item for the current path...
6 if ($path == $_GET['q']) {
7 // ...call a function that prepares something for this request.
8 mymodule_prepare_something();