You are here

function getlocations_leaflet_paths_get in Get Locations 7

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

Function

Return value

Returns

8 calls to getlocations_leaflet_paths_get()
getlocations_leaflet_display_options_form in modules/getlocations_leaflet/getlocations_leaflet.module
Function
getlocations_leaflet_field_formatter_settings_form in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
getlocations_leaflet_library in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_library().
getlocations_leaflet_map_settings_do in modules/getlocations_leaflet/getlocations_leaflet.module
Function
getlocations_leaflet_plugin_style::options_form in modules/getlocations_leaflet/views/getlocations_leaflet_plugin_style.inc
Options form

... See full list

File

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

Code

function getlocations_leaflet_paths_get($reset = FALSE, $min = FALSE) {
  $jq_upd = getlocations_check_jquery_version(TRUE);
  if ($min) {
    $defaults = array(
      'getlocations_leaflet_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet.min.js',
      'getlocations_leaflet_circles_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_circles.min.js',
      'getlocations_leaflet_formatter_path' => GETLOCATIONS_LEAFLET_PATH . ($jq_upd ? '/js/getlocations_leaflet_formatter_1.min.js' : '/js/getlocations_leaflet_formatter.min.js'),
      'getlocations_leaflet_polygons_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_polygons.min.js',
      'getlocations_leaflet_polylines_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_polylines.min.js',
      'getlocations_leaflet_rectangles_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_rectangles.min.js',
      'getlocations_leaflet_geojson_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_geojson.min.js',
      'getlocations_leaflet_providers_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_providers.min.js',
      'getlocations_leaflet_preview_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_preview.min.js',
      'getlocations_leaflet_field_group_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_field_group.min.js',
      'getlocations_leaflet_what3words_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_what3words.min.js',
    );
  }
  else {
    $defaults = array(
      'getlocations_leaflet_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet.js',
      'getlocations_leaflet_circles_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_circles.js',
      'getlocations_leaflet_formatter_path' => GETLOCATIONS_LEAFLET_PATH . ($jq_upd ? '/js/getlocations_leaflet_formatter_1.js' : '/js/getlocations_leaflet_formatter.js'),
      'getlocations_leaflet_polygons_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_polygons.js',
      'getlocations_leaflet_polylines_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_polylines.js',
      'getlocations_leaflet_rectangles_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_rectangles.js',
      'getlocations_leaflet_geojson_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_geojson.js',
      'getlocations_leaflet_providers_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_providers.js',
      'getlocations_leaflet_preview_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_preview.js',
      'getlocations_leaflet_field_group_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_field_group.js',
      'getlocations_leaflet_what3words_path' => GETLOCATIONS_LEAFLET_PATH . '/js/getlocations_leaflet_what3words.js',
    );
  }
  if ($reset || $min) {
    $getlocations_leaflet_paths = $defaults;
  }
  else {
    $settings = variable_get('getlocations_leaflet_paths', $defaults);
    $getlocations_leaflet_paths = getlocations_adjust_vars($defaults, $settings);
  }
  return $getlocations_leaflet_paths;
}