function bueditor_js_library in BUEditor 6
Same name and namespace in other branches
- 5 bueditor.module \bueditor_js_library()
Include all javascript files from library.
1 call to bueditor_js_library()
- bueditor_settle in ./
bueditor.module - Include necessary js and css files for editor settlement.
File
- ./
bueditor.module, line 192
Code
function bueditor_js_library($path) {
static $paths = array();
if ($path && !isset($paths[$path])) {
if ($handle = opendir($path)) {
while (($file = readdir($handle)) !== FALSE) {
if (substr($file, -3) == '.js') {
drupal_add_js($path . '/' . $file);
}
}
closedir($handle);
}
$paths[$path] = TRUE;
}
}