function media_youtube_media_mover in Media: YouTube 6
Implementation of media_mover hook
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
- ./
media_youtube.module, line 208 - Embedded Video Field provider file for YouTube.com.
Code
function media_youtube_media_mover($op = NULL, $action = NULL, $configuration = NULL, &$file = array(), $job = NULL, $nid = NULL) {
switch ($op) {
case 'name':
return t('Media: YouTube');
break;
case 'actions':
return array(
'process' => array(
1 => t('Upload video to YouTube.'),
),
'storage' => array(
2 => t('Upload video to YouTube.'),
),
);
break;
case 'process':
case 'storage':
module_load_include('inc', 'media_youtube', 'includes/media_youtube.media_mover');
return media_youtube_upload_video($file, $configuration);
break;
case 'config':
switch ($action) {
case '1':
case '2':
module_load_include('inc', 'media_youtube', 'includes/media_youtube.media_mover');
return media_youtube_config($configuration);
}
break;
}
}