function dnd_get_library in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 dnd/dnd.module \dnd_get_library()
Return the default library.
3 calls to dnd_get_library()
- dnd_admin_form in modules/
library/ dnd/ dnd.admin.inc - Provides the main DnD settings form.
- dnd_library in modules/
library/ dnd/ dnd.module - Implements hook_library().
- theme_sdl_library_item in modules/
library/ scald_dnd_library/ scald_dnd_library.module - Returns HTML for an atom rendered in the "Library Item" context.
File
- modules/
library/ dnd/ dnd.module, line 326
Code
function dnd_get_library() {
$libraries = dnd_get_libraries();
$default = variable_get('dnd_callback_url', '');
if (isset($libraries[$default])) {
$library = $default;
}
else {
reset($libraries);
$library = key($libraries);
}
return $library;
}