You are here

function scald_atom_providers in Scald: Media Management made easy 7

Get the list of module that have registered themselves as atom providers.

This function returns an associative array with the following format.

array( 'type-slug1' => array( 'module-name1' => 'label1', 'module-name2' => 'label2', ) );

Return value

array The Scald Atom Providers array.

5 calls to scald_atom_providers()
ScaldAtomController::removeType in includes/ScaldAtomController.inc
Remove a Scald unified type.
scald_atom_add_form_source in includes/scald.pages.inc
Source form.
scald_atom_providers_opt in ./scald.module
Get the list of module options registered for atom providers.
scald_search in ./scald.module
Find Atoms matching a given set of characteristics.
scald_views_handler_filter_atom_provider::get_value_options in includes/scald_views_handler_filter_atom_provider.inc
Overrides views_handler_filter_in_operator::get_value_options().
1 string reference to 'scald_atom_providers'
scald_update_7000 in ./scald.install
Updates the schema from the 6.x version.

File

./scald.module, line 292
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_atom_providers($reset = FALSE) {
  $types =& drupal_static(__FUNCTION__, NULL, $reset);
  if (!isset($types)) {
    $types = array();
    $hook = 'scald_atom_providers';
    foreach (module_implements($hook) as $module) {
      foreach (module_invoke($module, $hook) as $type => $label) {
        $types[$type][$module] = $label;
      }
    }
    drupal_alter($hook, $types);
  }
  return $types;
}