function emvideo_ustream_info in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/ustream.inc \emvideo_ustream_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/ ustream.inc, line 19
Code
function emvideo_ustream_info() {
$name = t('UStream.TV');
$features = array(
array(
t('Autoplay'),
t('No'),
'',
),
array(
t('RSS Attachment'),
t('No'),
'',
),
array(
t('Thumbnails'),
t('No'),
t(''),
),
);
return array(
'provider' => 'ustream',
'name' => $name,
'url' => EMVIDEO_USTREAM_MAIN_URL,
'settings_description' => t('These settings specifically affect videos displayed from !ustream. You can learn more about its !api here.', array(
'!ustream' => l($name, EMVIDEO_USTREAM_MAIN_URL, array(
'target' => '_blank',
)),
'!api' => l(t('API'), EMVIDEO_USTREAM_API_INFO, array(
'target' => '_blank',
)),
)),
'supported_features' => $features,
);
}