function bueditor_add_library in BUEditor 6.2
Same name and namespace in other branches
- 7 bueditor.inc \bueditor_add_library()
Include js and css files from library.
1 call to bueditor_add_library()
- _bueditor_settle in ./
bueditor.inc - Include necessary js and css files for editor settlement.
File
- ./
bueditor.inc, line 158 - Implements commonly used functions for bueditor.
Code
function bueditor_add_library($library) {
foreach (bueditor_get_library($library) as $key => $file) {
$ext = substr($file, -4);
if ($ext == '.css') {
drupal_add_css($file, 'theme');
}
elseif (substr($ext, 1) == '.js') {
drupal_add_js($file, 'theme');
}
}
}