You are here

function emvideo_yahoomusic_info in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/yahoomusic.inc \emvideo_yahoomusic_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/yahoomusic.inc, line 25
This include processes Yahoo Music API media files for use by emfield.module.

Code

function emvideo_yahoomusic_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('Yes'),
      t(''),
    ),
    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' => 'yahoomusic',
    'name' => t('Yahoo! Music'),
    'url' => EMVIDEO_YAHOOMUSIC_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from <a href="@yahoomusic" target="_blank">Yahoo Music</a>. You can learn more about its <a href="@api" target="_blank">API</a> here.', array(
      '@yahoomusic' => EMVIDEO_YAHOOMUSIC_MAIN_URL,
      '@api' => EMVIDEO_YAHOOMUSIC_API_INFO,
    )),
    'supported_features' => $features,
  );
}