function purge_users_now_form_submit in Auto Purge Users 7
Same name and namespace in other branches
- 7.2 purge_users.pages.inc \purge_users_now_form_submit()
Submit handler for mass-account cancellation form.
See also
1 string reference to 'purge_users_now_form_submit'
- purge_users_config_form in ./
purge_users.pages.inc - Menu callback function.
File
- ./
purge_users.pages.inc, line 308 - Purge users module config form file.
Code
function purge_users_now_form_submit($form, &$form_state) {
// Call purge user function to perform operation.
if ($form_state['triggering_element']['#name'] == 'purge_users_now') {
variable_set('purge_users_send_email_notification', $form_state['values']['purge_users_send_email_notification']);
$form_state['storage']['confirm'] = TRUE;
$form_state['storage']['original_form'] = $form_state['values'];
$form_state['rebuild'] = TRUE;
}
else {
// Add items to cron queue.
if ($form_state['values']['purge_users_purge_on_cron'] == 1) {
drupal_set_message(t('Purge user operation is scheduled for next cron.'));
}
}
}