You are here

function video_cck_vimeo_info in Embedded Media Field 5

hook video_cck_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/video_cck/providers/vimeo.inc, line 18

Code

function video_cck_vimeo_info() {
  $name = t('Vimeo');
  $features = array(
    array(
      t('Custom player color'),
      t('Yes'),
      t('You may customize the player\'s skin by choosing your own color.'),
    ),
    array(
      t('Thumbnails'),
      t('Yes'),
      t('You may select the size of thumbnail to request from Vimeo.'),
    ),
    array(
      t('Full screen mode'),
      t('Yes'),
      t('You may customize the player to enable or disable full screen playback. Full screen mode is enabled by default.'),
    ),
  );
  return array(
    'provider' => 'vimeo',
    'name' => $name,
    'url' => VIDEO_CCK_VIMEO_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from !provider. You can learn more about its !api here.', array(
      '!provider' => l($name, VIDEO_CCK_VIMEO_MAIN_URL, array(
        'target' => '_blank',
      )),
      '!api' => l(t('API'), VIDEO_CCK_VIMEO_API_INFO, array(
        'target' => '_blank',
      )),
    )),
    'supported_features' => $features,
  );
}