function dnd_get_library in Scald: Media Management made easy 6
Same name and namespace in other branches
- 7 modules/library/dnd/dnd.module \dnd_get_library()
Return the default library.
3 calls to dnd_get_library()
- dnd_add_library in dnd/
dnd.module - Adds all the JS libraries for the library to the page.
- dnd_admin_form in dnd/
dnd.admin.inc - Provides the main DnD settings form.
- dnd_process_textarea in dnd/
dnd.module - Settings array: What should it take, if anything? Probably a source * maybe editor specific configuration shit?
File
- dnd/
dnd.module, line 203
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;
}