function hook_file_operations_info in File Entity (fieldable files) 7
A list of operations which can be called on files.
Return value
An associave array of operations keyed by a system name.
- label: A string to show in the operations dropdown.
- callback (string): A callback function to call for the operation. This function will be passed an array of file_ids which were selected.
- confirm (boolean): Whether or not this operation requires a confirm form In the case where confirm is set to true, callback should be a function which can return a confirm form.
1 function implements hook_file_operations_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- file_entity_file_operations_info in ./
file_entity.module - Implements hook_file_operations_info().
1 invocation of hook_file_operations_info()
- file_entity_admin_files in ./
file_entity.admin.inc - Administrative form for browsing files and performing operations on them.
File
- ./
file_entity.file_api.inc, line 503 - API extensions of Drupal core's file.inc.
Code
function hook_file_operations_info() {
$operations = array(
'archive_and_email' => array(
'label' => t('Archive the selected files and email them'),
'callback' => 'file_archiver_confirm_form',
'confirm' => TRUE,
),
);
return $operations;
}