function cas_test_menu in CAS 7
Same name and namespace in other branches
- 6.3 tests/cas_test.module \cas_test_menu()
Implements hook_menu().
File
- tests/
cas_test.module, line 54 - Dummy module implementing a CAS Server.
Code
function cas_test_menu() {
$items = array();
$items['cas_test/login'] = array(
'page callback' => 'cas_test_login',
'title' => 'CAS Login',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/validate'] = array(
'page callback' => 'cas_test_validate',
'title' => 'CAS Validate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/serviceValidate'] = array(
'page callback' => 'cas_test_service_validate',
'title' => 'CAS Service Validate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/proxyValidate'] = array(
'page callback' => 'cas_test_service_validate',
'title' => 'CAS Proxy Ticket Validate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/p3/serviceValidate'] = array(
'page callback' => 'cas_test_service_validate',
'title' => 'CAS 3.0 Service Validate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/p3/proxyValidate'] = array(
'page callback' => 'cas_test_service_validate',
'title' => 'CAS 3.0 Proxy Ticket Validate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/logout'] = array(
'page callback' => 'cas_test_logout',
'title' => 'CAS Logout',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['cas_test/token'] = array(
'page callback' => 'cas_test_token_evaluate',
'title' => 'CAS Token Test',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}