You are here

function emaudio_podcastalley_info in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 contrib/emaudio/providers/podcastalley.inc \emaudio_podcastalley_info()
  2. 6 contrib/emaudio/providers/podcastalley.inc \emaudio_podcastalley_info()

Implementation of hook emaudio_podcastalley_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/podcastalley.inc, line 13

Code

function emaudio_podcastalley_info() {
  $name = t('Podcast Alley');
  $features = array(
    array(
      t('Autoplay'),
      t('No'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('No'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('No'),
      t(''),
    ),
  );
  return array(
    'provider' => 'Podcast Alley',
    'name' => $name,
    'url' => EMAUDIO_PODCASTALLEY_MAIN_URL,
    'settings_description' => t('These settings specifically affect audio podcasts displayed from !podcastalley.', array(
      '!podcastalley' => l($name, EMAUDIO_PODCASTALLEY_MAIN_URL, array(
        'target' => '_blank',
      )),
    )),
    'supported_features' => $features,
  );
}