function auditfiles_multiple_delete_confirm_submit in Audit Files 5
Same name and namespace in other branches
- 6.3 notindb.admin.inc \auditfiles_multiple_delete_confirm_submit()
- 6.2 notindb.admin.inc \auditfiles_multiple_delete_confirm_submit()
Form action: Delete selected files
File
- ./
auditfiles.module, line 352
Code
function auditfiles_multiple_delete_confirm_submit($form_id, $form_values) {
if ($form_values['confirm']) {
foreach ($form_values['files'] as $file) {
if (file_delete(file_create_path($file))) {
watchdog('audit', t('%file was deleted', array(
'%file' => $file,
)));
}
else {
drupal_set_message(t('Failed to delete %file', array(
'%file' => $file,
)));
}
}
drupal_set_message(t('The items have been deleted.'));
}
return 'admin/logs/auditfiles/notindb';
}