function ape_test_menu in Advanced Page Expiration 7
Implements hook_menu().
File
- tests/
ape_test.module, line 11 - Provide callbacks to test cache headers.
Code
function ape_test_menu() {
$items = array();
$items['ape_redirect_301'] = array(
'title' => 'ape redirect 301',
'access callback' => TRUE,
'page callback' => 'ape_test_redirect_callbacks',
'page arguments' => array(
'301',
),
'type' => MENU_CALLBACK,
);
$items['ape_redirect_302'] = array(
'title' => 'ape redirect 302',
'access callback' => TRUE,
'page callback' => 'ape_test_redirect_callbacks',
'page arguments' => array(
'302',
),
'type' => MENU_CALLBACK,
);
$items['ape_redirect_landing'] = array(
'title' => 'ape redirect landing',
'access callback' => TRUE,
'page callback' => 'ape_test_redirect_callbacks',
'page arguments' => array(
'landing',
),
'type' => MENU_CALLBACK,
);
return $items;
}