You are here

function getlocations_leaflet_hash_library_check in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_hash_library_check()

Check that the library exists

2 calls to getlocations_leaflet_hash_library_check()
getlocations_leaflet_library in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_library().
getlocations_leaflet_settings_form in modules/getlocations_leaflet/getlocations_leaflet.module

File

modules/getlocations_leaflet/getlocations_leaflet.module, line 4926
getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_leaflet_hash_library_check() {
  if ($path = libraries_get_path('leaflet-hash')) {
    $file = $path . '/leaflet-hash.js';
  }
  if ($path && file_exists($file)) {
    return $file;
  }
  else {
    return FALSE;
  }
}