function fancy_file_delete_manual_submit in Fancy File Delete 7
Submit handler for manual form.
1 string reference to 'fancy_file_delete_manual_submit'
- fancy_file_delete_manual in includes/
fancy_file_delete.admin.inc - Manual Deletion Page Callback.
File
- includes/
fancy_file_delete.admin.inc, line 62 - Fancy File Delete administration and module settings UI.
Code
function fancy_file_delete_manual_submit($form, &$form_state) {
$operations = array();
$force = $form_state['values']['force'] ? TRUE : FALSE;
$fids = explode("\n", $form_state['values']['delete_textarea']);
foreach ($fids as $fid) {
$operations[] = array(
'fancy_file_delete_batch_delete',
array(
$fid,
$force,
),
);
}
// Send to batch.
_fancy_file_delete_batch_delete_run($operations);
}