You are here

function bueditor_get_library in BUEditor 6.2

Same name and namespace in other branches
  1. 7 bueditor.inc \bueditor_get_library()

Get an array of js and css files defined in editor library.

2 calls to bueditor_get_library()
bueditor_add_library in ./bueditor.inc
Include js and css files from library.
bueditor_varexport_editor in admin/bueditor.admin.inc
Generate an importable editor string including icon and library files.

File

./bueditor.inc, line 173
Implements commonly used functions for bueditor.

Code

function bueditor_get_library($library) {
  $files = array();
  foreach (preg_split("/\\s+/", $library) as $path) {
    if ($path && is_file($path_tr = bueditor_path_tr($path))) {
      $files[$path] = $path_tr;
    }
  }
  return $files;
}