function user_admin_account_submit in Drupal 5
Same name and namespace in other branches
- 6 modules/user/user.admin.inc \user_admin_account_submit()
- 7 modules/user/user.admin.inc \user_admin_account_submit()
Submit the user administration update form.
File
- modules/
user/ user.module, line 2147 - Enables the user registration and login system.
Code
function user_admin_account_submit($form_id, $form_values) {
$operations = module_invoke_all('user_operations');
$operation = $operations[$form_values['operation']];
// Filter out unchecked accounts.
$accounts = array_filter($form_values['accounts']);
if ($function = $operation['callback']) {
// Add in callback arguments if present.
if (isset($operation['callback arguments'])) {
$args = array_merge(array(
$accounts,
), $operation['callback arguments']);
}
else {
$args = array(
$accounts,
);
}
call_user_func_array($function, $args);
cache_clear_all('*', 'cache_menu', TRUE);
drupal_set_message(t('The update has been performed.'));
}
}