function tripal_delete_file_form
3.x tripal.user.inc | tripal_delete_file_form($form, $form_state, $uid, $fid) |
Provides a confirmation form for deleting a galaxy workflow uploaded file.
1 string reference to 'tripal_delete_file_form'
- tripal_menu in tripal/
tripal.module - Implements hook_menu(). Defines all menu items needed by Tripal Core
File
- tripal/
includes/ tripal.user.inc, line 152
Code
function tripal_delete_file_form($form, $form_state, $uid, $fid) {
$form = array();
$file = file_load($fid);
$form['uid'] = array(
'#type' => 'value',
'#value' => $uid,
);
$form['fid'] = array(
'#type' => 'value',
'#value' => $fid,
);
return confirm_form($form,
t('Confirm deletion of the file named "' . $file->filename . '"?'),
'user/' . $uid . '/files/',
t('Warning. If this file is intended to be used with a analysis workflow submission that has not yet started then the workflow will fail. Once deleted, the file can no longer be used for new workflow submissions without uploading again.')
);
}