You are here

function image_ncck_picasa_info in Embedded Media Field 5

hook image_ncck_PROVIDER_info this returns information relevant to a specific 3rd party image 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/image_ncck/providers/picasa.inc, line 19

Code

function image_ncck_picasa_info() {
  $name = t('Picasa');
  $features = array(
    array(
      t('Import photosets'),
      t('No'),
      '',
    ),
  );
  return array(
    'provider' => 'picasa',
    'name' => $name,
    'url' => IMAGE_NCCK_PICASA_MAIN_URL,
    'settings_description' => t('These settings specifically affect images displayed from !picasa.', array(
      '!picasa' => l($name, IMAGE_NCCK_PICASA_MAIN_URL, array(
        'target' => '_blank',
      )),
      '!api' => l(t('API'), IMAGE_NCCK_PICASA_API_INFO, array(
        'target' => '_blank',
      )),
    )),
    'supported_features' => $features,
    'import_sets_word' => t('photosets'),
  );
}