You are here

function EMMODULE_PROVIDER_info in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 hooks/emfield.php \EMMODULE_PROVIDER_info()
  2. 6 hooks/emfield.php \EMMODULE_PROVIDER_info()

Return the information about a specific provider.

Each provider module must implement this hook to be recognized.

Return value

An associative array with the following information: 'provider' => The machine name, should be same as the provider filename. 'name' => The provider's human readable name. 'url' => The URL to the provider's main page. 'settings_description' => This will be displayed above the provider information on the administration page. 'supported_features' => An array of cells to be passed to a table on the administration page, under the headers of 'Feature', 'Supported', and 'Notes'.

File

hooks/emfield.php, line 43
Document various hooks for Embedded Media Field.

Code

function EMMODULE_PROVIDER_info() {
  $features = array(
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS Attachment'),
      t('Yes'),
      '',
    ),
    array(
      t('Thumbnails'),
      t('Yes'),
      t(''),
    ),
    array(
      t('Duration'),
      t('Yes'),
      '',
    ),
    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.'),
    ),
    array(
      t('Use JW FLV Media Player'),
      t('Yes'),
      t("You may opt to use the !flvplayer to play example.com videos if it's installed on your server.", array(
        '!flvplayer' => l(t('JW FLV Media Player'), 'http://www.longtailvideo.com/players/jw-flv-player/'),
      )),
    ),
  );
  return array(
    'provider' => 'example',
    'name' => t('Example.com'),
    'url' => 'http://example.com/',
    'settings_description' => t('These settings specifically affect videos displayed from <a href="@example" target="_blank">Example.com</a>.', array(
      '@example' => 'http://example.com',
    )),
    'supported_features' => $features,
  );
}