function cas_add_user_form_submit in CAS 7
Same name and namespace in other branches
- 6.3 cas.user.inc \cas_add_user_form_submit()
File
- ./
cas.user.inc, line 32 - Provides CAS user registration administrative pages.
Code
function cas_add_user_form_submit($form, &$form_state) {
$cas_names = preg_split('/[\\n\\r|\\r|\\n]+/', $form_state['values']['cas_name']);
foreach ($cas_names as $cas_name) {
$operations[] = array(
'cas_batch_user_add',
array(
$cas_name,
),
);
}
$batch = array(
'title' => t('Creating users...'),
'operations' => $operations,
'finished' => 'cas_batch_user_finished',
'progress_message' => t('Processed @current out of @total.'),
'file' => drupal_get_path('module', 'cas') . '/cas.batch.inc',
);
batch_set($batch);
}