function auditfiles_multiple_delete_confirm in Audit Files 6.3
Same name and namespace in other branches
- 5 auditfiles.module \auditfiles_multiple_delete_confirm()
- 6.2 notindb.admin.inc \auditfiles_multiple_delete_confirm()
Form action: Confirm deletion of selected items
1 call to auditfiles_multiple_delete_confirm()
- auditfiles_notindb in ./
notindb.admin.inc - Menu callback: audit files not in the database.
File
- ./
notindb.admin.inc, line 134 - Callback and functions to generate files not in database report
Code
function auditfiles_multiple_delete_confirm(&$form_state, $files = array()) {
$form['files'] = array(
'#prefix' => '<ul>',
'#suffix' => '</ul>',
'#tree' => TRUE,
);
// array_filter in the call returned only elements with TRUE values
foreach ($files as $file) {
$form['files'][$file] = array(
'#type' => 'hidden',
'#value' => $file,
'#prefix' => '<li>',
'#suffix' => check_plain($file) . "</li>\n",
);
}
$form['operation'] = array(
'#type' => 'hidden',
'#value' => 'delete',
);
$form['#submit'][] = 'auditfiles_multiple_delete_confirm_submit';
return confirm_form($form, t('Are you sure you want to delete these items?'), 'admin/reports/auditfiles/notindb', '<strong>' . t('This action cannot be undone.') . '</strong>', t('Delete all'), t('Cancel'));
}