You are here

function cas_server_menu in CAS 5.4

Same name and namespace in other branches
  1. 5.3 cas_server.module \cas_server_menu()
  2. 6.3 cas_server.module \cas_server_menu()
  3. 6.2 cas_server.module \cas_server_menu()
  4. 7 cas_server.module \cas_server_menu()

Implementation of hook_menu

File

./cas_server.module, line 11
Provides a protocol compliant version of CAS server 2.x

Code

function cas_server_menu($may_cache = FALSE) {
  $items = array();
  if (!$may_cache) {
    $items[] = array(
      'path' => 'cas/login',
      'callback' => 'cas_server_login',
      'title' => t('CAS Login'),
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'cas/validate',
      'callback' => 'cas_server_validate',
      'title' => t('CAS Validate'),
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'cas/serviceValidate',
      'callback' => 'cas_server_service_validate',
      'title' => t('CAS Service Validate'),
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'cas/logout',
      'callback' => 'cas_server_logout',
      'title' => t('CAS Logout'),
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}