Module to help test altering the inbound and outbound path.
<?php
/**
* @file
* Module to help test altering the inbound and outbound path.
*/
/**
* Implements hook_menu().
*/
function url_alter_test_menu() {
$items['url-alter-test/foo'] = array(
'title' => 'Foo',
'page callback' => 'url_alter_test_foo',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}
/**
* Menu callback.
*/
function url_alter_test_foo() {
print 'current_path=' . current_path() . ' request_path=' . request_path();
exit;
}
Name | Description |
---|---|
url_alter_test_foo | Menu callback. |
url_alter_test_menu | Implements hook_menu(). |