You are here

function _proj4js_get_path in Proj4JS 7

Return path to library.

Return the path to the default bundled library if not found in sites/all/libraries.

Return value

string

1 call to _proj4js_get_path()
proj4js_libraries_info in ./proj4js.module
Implements of hook_libraries_info().

File

./proj4js.module, line 86
Main module file for the proj4js.module.

Code

function _proj4js_get_path() {
  $lib = libraries_get_libraries();
  if (isset($lib['proj4js'])) {
    if (file_exists($lib['proj4js'])) {
      return $lib['proj4js'];
    }
  }
  return drupal_get_path('module', 'proj4js') . '/lib/proj4js';
}