You are here

function hook_scald_atom_providers in Scald: Media Management made easy 7

Define information about atom providers provided by a module.

Return value

array An array of atom providers. This array is keyed by the unified atom type. A module can define at most one provider for each atom type. Each provider is defined by an untranslated name.

4 functions implement hook_scald_atom_providers()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

scald_audio_scald_atom_providers in modules/providers/scald_audio/scald_audio.module
Implements hook_scald_atom_providers().
scald_flash_scald_atom_providers in modules/providers/scald_flash/scald_flash.module
Implements hook_scald_atom_providers. Tell Scald that we'll be providing some flash atoms.
scald_image_scald_atom_providers in modules/providers/scald_image/scald_image.module
Implements hook_scald_atom_providers().
scald_video_scald_atom_providers in modules/providers/scald_video/scald_video.module
Implements hook_scald_atom_providers().

File

./scald.api.php, line 87
Hooks related to Scald atoms and providers.

Code

function hook_scald_atom_providers() {
  return array(
    'image' => 'Image hosted on Flickr',
  );

  // This code will never be hit, but is necessary to mark the string
  // for translation on localize.d.o.
  // @codingStandardsIgnoreStart
  t('Image hosted on Flickr');

  // @codingStandardsIgnoreEnd
}