function filefield_file_edit_delete_submit in FileField 6.2
Submit callback for the "Delete" button next to each file item.
1 string reference to 'filefield_file_edit_delete_submit'
- filefield_file_edit_form in ./
filefield.widget.inc - The filefield widget for previously uploaded files.
File
- ./
filefield.widget.inc, line 588 - FileField: Defines a CCK file field type.
Code
function filefield_file_edit_delete_submit($form, &$form_state) {
$field = $form_state['clicked_button']['#field'];
$delta = $form_state['clicked_button']['#delta'];
filefield_file_edit_delete($form_state, $field, $delta);
// Rebuild the form with the new deleted-file state.
node_form_submit_build_node($form, $form_state);
}