You are here

function cas_user_add_submit in CAS 6.3

Same name and namespace in other branches
  1. 7 cas.pages.inc \cas_user_add_submit()

File

./cas.pages.inc, line 46
User page callbacks for the cas module.

Code

function cas_user_add_submit($form, &$form_state) {
  db_query("INSERT INTO {cas_user} (uid, cas_name) VALUES (%d, '%s')", $form_state['values']['uid'], $form_state['values']['cas_name']);
  drupal_set_message(t('CAS username %cas_name added.', array(
    '%cas_name' => $form_state['values']['cas_name'],
  )));
}