function user_admin_account_submit
user_admin_account_submit($form, &$form_state)
Submit the user administration update form.
File
- modules/user/user.admin.inc, line 248
- Admin page callback file for the user module.
Code
function user_admin_account_submit($form, &$form_state) { $operations = module_invoke_all('user_operations', $form, $form_state); $operation = $operations[$form_state['values']['operation']]; // Filter out unchecked accounts. $accounts = array_filter($form_state['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); drupal_set_message(t('The update has been performed.')); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.admin.inc/function/user_admin_account_submit/7.x