You are here

function emaudio_soundcloud_info in Media: SoundCloud 6

Implementation of hook_emaudio_PROVIDER_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

providers/soundcloud.inc, line 22
This include processes Soundcloud audio files for use by emaudio.module.

Code

function emaudio_soundcloud_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('No'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('No'),
      t(''),
    ),
    array(
      t('Custom player colors'),
      t('Yes'),
      t("You may customize the player's play button color."),
    ),
    array(
      t('Show SoundCloud comments'),
      t('Yes'),
      t("You may choose whether to show timed comments on the player."),
    ),
  );
  return array(
    'provider' => 'soundcloud',
    'name' => t('SoundCloud'),
    'url' => EMAUDIO_SOUNDCLOUD_MAIN_URL,
    'settings_description' => t('These settings specifically affect audio displayed from <a href="@soundcloud" target="_blank">SoundCloud</a>.', array(
      '@soundcloud' => EMAUDIO_SOUNDCLOUD_MAIN_URL,
    )),
    'supported_features' => $features,
  );
}