You are here

function emimage_custom_url_info in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emimage/providers/custom_url.inc \emimage_custom_url_info()

This hook of the emimage_PROVIDER_info() returns information relevant to the Global Image Provider, and not to an specific 3rd party image provider.

Return value

An object of type array of strings requested by admin & 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/custom_url.inc, line 17

Code

function emimage_custom_url_info() {
  $name = t('Custom URL');
  $features = array(
    array(
      t('Thumbnails'),
      t('Yes'),
      '',
    ),
    array(
      t('Autoplay'),
      t('Yes'),
      '',
    ),
    array(
      t('RSS attachment'),
      t('No'),
      '',
    ),
  );
  return array(
    'provider' => 'custom_url',
    'name' => $name,
    'settings_description' => t('The settings of this provider will allow images from any public hosting server.'),
    'supported_features' => $features,
  );
}