You are here

function cas_menu_link_alter in CAS 7

Same name and namespace in other branches
  1. 6.3 cas.module \cas_menu_link_alter()

Implements hook_menu_link_alter().

Flag this link as needing alter at display time.

See also

cas_translated_menu_link_alter()

File

./cas.module, line 449
Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.

Code

function cas_menu_link_alter(&$item) {
  $link_path = strtolower($item['link_path']);
  if ($link_path == 'cas' || $link_path == 'caslogout') {
    $item['options']['alter'] = TRUE;
  }
}