function dnd_add_library in Scald: Media Management made easy 6
Adds all the JS libraries for the library to the page.
2 calls to dnd_add_library()
- atom_reference_textfield_process in atom_reference/
atom_reference.module - Process an individual element, building the actual form api components needed for this widget.
- 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 102
Code
function dnd_add_library() {
static $included = FALSE;
if (!$included) {
$included = TRUE;
// BeautyTips
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/bt/other_libs/excanvas_0002/excanvas-compressed.js');
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/bt/other_libs/jquery.hoverIntent.minified.js');
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/bt/jquery.bt.js');
// Dependencies
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/jquery.url.packed.js');
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/jquery.fieldselection.js');
drupal_add_js('misc/jquery.form.js');
// Drag and drop
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/jquery.draganddrop.js');
drupal_add_js(drupal_get_path('module', 'dnd') . '/js/dnd-library.js');
// Contains the library theming
drupal_add_css(drupal_get_path('module', 'dnd') . '/css/dnd-library.css');
// Settings for the library url
drupal_add_js(array(
'dnd' => array(
'url' => url(dnd_get_library()),
),
), 'setting');
}
}