You are here

function emvideo_archive_info in Embedded Media Field 6

hook emvideo_PROVIDER_info This returns information relevant to a specific 3rd party video provider.

Return value

A keyed array of strings requested by various admin and other forms. 'provider' => The machine name of the provider. This must be the same as the base name of this filename, before the .inc extension. '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'. In general, the 'Feature' column will give the name of the feature, 'Supported' will be Yes or No, and 'Notes' will give an optional description or caveats to the feature.

File

contrib/emvideo/providers/archive.inc, line 45
This is an archive.org provider include file for Embedded Media Video.

Code

function emvideo_archive_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      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' => 'archive',
    'name' => t('archive.org'),
    'url' => EMVIDEO_ARCHIVE_MAIN_URL,
    'settings_description' => t('These settings specifically affect videos displayed from !archive. You can also read more about its !api.', array(
      '!archive' => l(t('Archive.com'), EMVIDEO_ARCHIVE_MAIN_URL),
      '!api' => l(t("developer's API"), EMVIDEO_ARCHIVE_API_URL),
    )),
    'supported_features' => $features,
  );
}