function cas_user_identities in CAS 6.3
Same name and namespace in other branches
- 7 cas.pages.inc \cas_user_identities()
Menu callback; Manage CAS identities for the specified user.
1 string reference to 'cas_user_identities'
- cas_menu in ./
cas.module - Implementation of hook_menu().
File
- ./
cas.pages.inc, line 11 - User page callbacks for the cas module.
Code
function cas_user_identities($account) {
drupal_set_title(check_plain($account->name));
$header = array(
t('CAS username'),
t('Operations'),
);
$rows = array();
foreach ($account->cas_names as $aid => $cas_name) {
$rows[] = array(
check_plain($cas_name),
l(t('Delete'), 'user/' . $account->uid . '/cas/delete/' . $aid),
);
}
$output = theme('table', $header, $rows);
$output .= drupal_get_form('cas_user_add', $account);
return $output;
}