function media_media_operations in D7 Media 7
Same name in this branch
- 7 media.media.inc \media_media_operations()
- 7 media.api.php \media_media_operations()
Implements hook_media_operations().
File
- ./
media.media.inc, line 124 - Media module integration for the Media module.
Code
function media_media_operations() {
$operations = array(
'delete' => array(
'label' => t('Delete'),
'callback' => NULL,
),
'edit' => array(
'label' => t('Edit'),
'callback' => NULL,
'redirect' => 'media/%fids/multiedit',
),
);
if (!module_exists('multiform')) {
// If the multiform module is not installed, do not show this option.
unset($operations['edit']);
}
return $operations;
}