You are here

function dnd_get_libraries in Scald: Media Management made easy 7

Same name and namespace in other branches
  1. 6 dnd/dnd.module \dnd_get_libraries()

Return the list of all the available libraries.

Return value

array An associative array, where the keys are the library paths, and the value is an associated label.

2 calls to dnd_get_libraries()
dnd_admin_form in modules/library/dnd/dnd.admin.inc
Provides the main DnD settings form.
dnd_get_library in modules/library/dnd/dnd.module
Return the default library.

File

modules/library/dnd/dnd.module, line 314

Code

function dnd_get_libraries() {
  static $libraries = NULL;
  if (is_null($libraries)) {
    $libraries = module_invoke_all('dnd_libraries_info');
    drupal_alter('dnd_libraries_info', $libraries);
  }
  return $libraries;
}