You are here

function filebrowser_form_delete_confirm in Filebrowser 8

Same name and namespace in other branches
  1. 6.2 filebrowser.module \filebrowser_form_delete_confirm()
  2. 7.4 filebrowser.module \filebrowser_form_delete_confirm()
  3. 7.2 filebrowser.module \filebrowser_form_delete_confirm()
  4. 7.3 filebrowser.module \filebrowser_form_delete_confirm()

File delete confirmation form CHECK: $node is used but not defined in this function

1 string reference to 'filebrowser_form_delete_confirm'
filebrowser_page_delete in ./filebrowser.pages.inc

File

./filebrowser.module, line 719
Validates file path input on node form

Code

function filebrowser_form_delete_confirm($form, &$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'));
}