You are here

function elfinder_lib_path in elFinder file manager 6

Same name and namespace in other branches
  1. 8.2 elfinder.module \elfinder_lib_path()
  2. 6.2 elfinder.module \elfinder_lib_path()
  3. 7.3 elfinder.module \elfinder_lib_path()
  4. 7 elfinder.module \elfinder_lib_path()
  5. 7.2 elfinder.module \elfinder_lib_path()

library files path

5 calls to elfinder_lib_path()
elfinder_check_badpaths in ./elfinder.module
elfinder_connector_path in ./elfinder.module
library to filesystem connector path
elfinder_file_browser in ./elfinder.module
File browser render
elfinder_requirements in ./elfinder.install
Implements hook_requirements().
elfinder_theme in ./elfinder.module
Implements hook_theme().

File

./elfinder.module, line 516

Code

function elfinder_lib_path($name = 'elfinder') {
  static $libraries;
  $base_path = FALSE;
  if (!isset($libraries)) {
    $libraries = elfinder_get_libraries();
  }
  $path = $base_path ? base_path() : '';
  if (!isset($libraries[$name])) {

    // Most often, external libraries can be shared across multiple sites, so
    // we return sites/all/libraries as the default path.
    $path .= 'sites/all/libraries/' . $name;
  }
  else {
    $path .= $libraries[$name];
  }
  return $path;
}