function cas_menu in CAS 6
Same name and namespace in other branches
- 5.4 cas.module \cas_menu()
- 5 cas.module \cas_menu()
- 5.3 cas.module \cas_menu()
- 6.3 cas.module \cas_menu()
- 6.2 cas.module \cas_menu()
- 7 cas.module \cas_menu()
Implements hook_menu.
File
- ./
cas.module, line 243
Code
function cas_menu() {
global $user;
$items = array();
//cas_login_check();
$items['admin/user/cas'] = array(
'title' => t('CAS settings'),
'description' => 'Configure central authentication services',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cas_admin_settings',
),
'access arguments' => array(
'administer cas',
),
'type' => MENU_NORMAL_ITEM,
);
$items['cas'] = array(
'path' => 'cas',
'title' => t('CAS Login'),
'page callback' => 'cas_login_page',
'access callback' => 'cas_menu_check',
'type' => MENU_SUGGESTED_ITEM,
);
$items['caslogout'] = array(
'title' => t('CAS Logout'),
'page callback' => 'cas_logout',
'access callback' => 'cas_menu_logout_check',
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}