function emvideo_dailymotion_info in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/dailymotion.inc \emvideo_dailymotion_info()
hook emvideo_PROVIDER_info this returns information relevant to a specific 3rd party video provider
Return value
an array of strings requested by various admin and other forms 'name' => the translated name of the provider 'url' => the url to the main page for the provider 'settings_description' => a description of the provider that will be posted in the admin settings form 'supported_features' => an array of rows describing the state of certain supported features by the provider. These will be rendered in a table, with the columns being 'Feature', 'Supported', 'Notes'.
File
- contrib/
emvideo/ providers/ dailymotion.inc, line 21 - This include processes dailymotion media files for use by emfield.module.
Code
function emvideo_dailymotion_info() {
$features = array(
array(
t('Autoplay'),
t('Yes'),
'',
),
array(
t('RSS Attachment'),
t('No'),
'',
),
array(
t('Thumbnails'),
t('Yes'),
t('Although thumbnails are generated, they are restricted to a size of 160x120.'),
),
);
return array(
'provider' => 'dailymotion',
'name' => t('Dailymotion'),
'url' => EMVIDEO_DAILYMOTION_MAIN_URL,
'settings_description' => t('These settings specifically affect videos displayed from <a href="@dailymotion" target="_blank">Dailymotion</a>.', array(
'@dailymotion' => EMVIDEO_DAILYMOTION_MAIN_URL,
)),
'supported_features' => $features,
);
}