function brightcove_media_mover in Brightcove Video Connect 6.2
Same name and namespace in other branches
- 6 brightcove.module \brightcove_media_mover()
Implementation of hook_media_mover().
Taken from Media Brightcove module by Aaron Winborn - http:/advomatic.com http://drupalcode.org/viewvc/drupal/contributions/modules/media_brightco...
Parameters
$op is the operator to return:
$action is which action is being called:
$verb is the verb being run:
$configuration is the specific configuration saved for the action for this configuration:
$file is the file in use:
$job is the full configuration data currently running:
File
- ./
brightcove.module, line 317 - Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.
Code
function brightcove_media_mover($op = NULL, $action = NULL, $configuration = NULL, &$file = array(), $job = NULL, $nid = NULL) {
switch ($op) {
case 'name':
return t('Brightcove');
break;
case 'actions':
return array(
'process' => array(
1 => t('Upload video to Brightcove.'),
),
'storage' => array(
2 => t('Upload video to Brightcove.'),
),
'complete' => array(
3 => t('Attach Brightcove video to a CCK video field'),
),
);
break;
case 'complete':
module_load_include('inc', 'brightcove', 'brightcove.media_mover');
return brightcove_mm_complete_video($file, $configuration);
break;
case 'process':
case 'storage':
module_load_include('inc', 'brightcove', 'brightcove.media_mover');
return brightcove_mm_upload_video($file, $configuration);
break;
case 'config':
switch ($action) {
case '1':
case '2':
module_load_include('inc', 'brightcove', 'brightcove.media_mover');
return brightcove_mm_config($configuration);
break;
case '3':
module_load_include('inc', 'brightcove', 'brightcove.media_mover');
return brightcove_mm_complete_config($configuration);
break;
}
break;
}
}