function dnd_get_libraries in Scald: Media Management made easy 6
Same name and namespace in other branches
- 7 modules/library/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.
3 calls to dnd_get_libraries()
- dnd_admin_form in dnd/
dnd.admin.inc - Provides the main DnD settings form.
- dnd_get_library in dnd/
dnd.module - Return the default library.
- mee_field_settings in mee/
mee.module - Implementation of hook_field_settings().
File
- dnd/
dnd.module, line 191
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;
}