You are here

function video_cck_lastfm_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/lastfm.inc, line 16

Code

function video_cck_lastfm_info() {
  $name = t('Last.fm');
  $features = array(
    array(
      t('Autoplay'),
      t('No'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('No'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('No'),
      t(''),
    ),
  );
  return array(
    'provider' => 'lastfm',
    'name' => $name,
    'url' => VIDEO_CCK_LASTFM_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from !lastfm.', array(
      '!lastfm' => l($name, VIDEO_CCK_LASTFM_MAIN_URL, array(
        'target' => '_blank',
      )),
    )),
    'supported_features' => $features,
  );
}