You are here

function emimage_flickr_info in Embedded Media Field 6

hook emimage_PROVIDER_info this returns information relevant to a specific 3rd party video 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/emimage/providers/flickr.inc, line 27
This include processes flickr.com image files for use by emfield.module.

Code

function emimage_flickr_info() {
  $name = t('Flickr');
  $features = array(
    array(
      t('Thumbnails'),
      t('Yes'),
      '',
    ),
    array(
      t('Import photosets'),
      t('Yes'),
      t('If you have the Embedded Media Import module activated, you may allow @name photosets to be imported into content.', array(
        '@name' => $name,
      )),
    ),
  );
  return array(
    'provider' => 'flickr',
    'name' => t('Flickr'),
    'url' => EMIMAGE_FLICKR_MAIN_URL,
    'settings_description' => t('These settings specifically affect images displayed from <a href="@flickr" target="_blank">Flickr</a>.', array(
      '@flickr' => EMIMAGE_FLICKR_MAIN_URL,
    )),
    'supported_features' => $features,
    'import_sets_word' => t('photosets'),
  );
}