function cas_user_add_submit in CAS 7
Same name and namespace in other branches
- 6.3 cas.pages.inc \cas_user_add_submit()
File
- ./
cas.pages.inc, line 47 - User page callbacks for the cas module.
Code
function cas_user_add_submit($form, &$form_state) {
$query = db_insert('cas_user')
->fields(array(
'uid' => $form_state['build_info']['args'][0]->uid,
'cas_name' => $form_state['values']['cas_name'],
))
->execute();
drupal_set_message(t('CAS username %cas_name added.', array(
'%cas_name' => $form_state['values']['cas_name'],
)));
}