You are here

function emaudio_soundclick_info in Embedded Media Field 5

Implementation of hook emaudio_soundclick_info(). This returns information relevant to a specific 3rd party audio 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/emaudio/providers/soundclick.inc, line 14

Code

function emaudio_soundclick_info() {
  $name = t('SoundClick');
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('No'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('No'),
      t(''),
    ),
  );
  return array(
    'provider' => 'soundclick',
    'name' => $name,
    'url' => EMAUDIO_SOUNDCLICK_MAIN_URL,
    'settings_description' => t('These settings specifically affect audio podcasts displayed from !soundclick.', array(
      '!soundclick' => l($name, EMAUDIO_SOUNDCLICK_MAIN_URL, array(
        'target' => '_blank',
      )),
    )),
    'supported_features' => $features,
  );
}