function filebrowser_form_delete_confirm in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_form_delete_confirm()
- 7.4 filebrowser.module \filebrowser_form_delete_confirm()
- 7.2 filebrowser.module \filebrowser_form_delete_confirm()
- 7.3 filebrowser.module \filebrowser_form_delete_confirm()
File delete confirmation form
1 string reference to 'filebrowser_form_delete_confirm'
File
- ./
filebrowser.module, line 400
Code
function filebrowser_form_delete_confirm(&$form_state, $fids) {
$form['fids'] = array(
'#type' => 'value',
'#value' => $fids,
);
foreach ($fids as &$fid) {
$file = _filebrowser_node_content_load($fid);
$fid = _filebrowser_safe_basename($file['path']);
}
return confirm_form($form, t('Are you sure you want to delete following files ?'), isset($_GET['destination']) ? $_GET['destination'] : 'node/' . $node->nid, "<ul><li>" . implode("</li><li>", $fids) . "</li></ul>" . t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}