function file_entity_multiple_delete_confirm_operation in File Entity (fieldable files) 7
File operation to show a confirm form for file deletion.
Parameters
array $files: An array of file_ids to delete.
Return value
type
1 string reference to 'file_entity_multiple_delete_confirm_operation'
- file_entity_file_operations_info in ./
file_entity.module - Implements hook_file_operations_info().
File
- ./
file_entity.module, line 706 - Extends Drupal file entities to be fieldable and viewable.
Code
function file_entity_multiple_delete_confirm_operation($files) {
// This function is a form generation function.
$form = array();
$form_state = array();
// Set the submit handler explicitly because this form is being built
// under a different form_id.
$form['#submit'] = array();
$form['#submit'][] = 'file_entity_multiple_delete_confirm_submit';
return file_entity_multiple_delete_confirm($form, $form_state, $files);
}