function media_library_file_operations in Media Library 7
Implements hook_file_operations().
File
- ./
media_library.file.inc, line 11 - File hooks implemented by the Media Library module.
Code
function media_library_file_operations() {
$operations = array(
'add_to_library' => array(
'label' => t('Add selected files to the media library'),
'callback' => 'file_entity_mass_update',
'callback arguments' => array(
'updates' => array(
'library' => INCLUDE_IN_LIBRARY,
),
),
),
'remove_from_library' => array(
'label' => t('Remove selected files from the media library'),
'callback' => 'file_entity_mass_update',
'callback arguments' => array(
'updates' => array(
'library' => EXCLUDE_FROM_LIBRARY,
),
),
),
);
return $operations;
}