You are here

function getlocations_paths_get in Get Locations 7.2

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_paths_get()
  2. 6 getlocations.module \getlocations_paths_get()
  3. 7 getlocations.module \getlocations_paths_get()

Function

Return value

Returns array of javascript paths

12 calls to getlocations_paths_get()
getlocations_fields_handler_filter_distance::value_form in modules/getlocations_fields/handlers/getlocations_fields_handler_filter_distance.inc
Options form subform for setting options.
getlocations_init in ./getlocations.module
Implements hook_init().
getlocations_leaflet_library in modules/getlocations_leaflet/getlocations_leaflet.module
Implements hook_library().
getlocations_leaflet_plugin_style::options_form in modules/getlocations_leaflet/views/getlocations_leaflet_plugin_style.inc
Options form
getlocations_mapquest_plugin_style::options_form in modules/getlocations_mapquest/views/getlocations_mapquest_plugin_style.inc
Options form

... See full list

File

./getlocations.module, line 4943
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_paths_get($reset = FALSE, $min = FALSE) {
  $jq_upd = getlocations_check_jquery_version(TRUE);
  if ($min) {
    $defaults = array(
      'infobubble_path' => GETLOCATIONS_PATH . '/js/infobubble.min.js',
      'infobubble_options_path' => GETLOCATIONS_PATH . '/js/infobubble_options.js',
      'infobubble_extended_path' => GETLOCATIONS_PATH . '/js/infobubble_extended.min.js',
      'markermanager_path' => GETLOCATIONS_PATH . '/js/markermanager_packed.js',
      'markerclusterer_path' => GETLOCATIONS_PATH . '/js/markerclusterer_packed.js',
      'infowindow_options_path' => GETLOCATIONS_PATH . '/js/infowindow_options.js',
      'getlocations_path' => GETLOCATIONS_PATH . '/js/getlocations.min.js',
      'getlocations_polygons_path' => GETLOCATIONS_PATH . '/js/getlocations_polygons.min.js',
      'getlocations_rectangles_path' => GETLOCATIONS_PATH . '/js/getlocations_rectangles.min.js',
      'getlocations_circles_path' => GETLOCATIONS_PATH . '/js/getlocations_circles.min.js',
      'getlocations_polylines_path' => GETLOCATIONS_PATH . '/js/getlocations_polylines.min.js',
      'getlocations_categories_path' => GETLOCATIONS_PATH . '/js/getlocations_categories.min.js',
      'getlocations_search_places_path' => GETLOCATIONS_PATH . '/js/getlocations_search_places.min.js',
      'getlocations_geo_path' => GETLOCATIONS_PATH . '/js/getlocations_geo.min.js',
      'getlocations_preview_path' => GETLOCATIONS_PATH . '/js/getlocations_preview.min.js',
      'getlocations_geojson_path' => GETLOCATIONS_PATH . '/js/getlocations_geojson.min.js',
      'getlocations_admin_path' => GETLOCATIONS_PATH . ($jq_upd ? '/js/getlocations_admin_1.min.js' : '/js/getlocations_admin.min.js'),
      'getlocations_box_path' => GETLOCATIONS_PATH . '/js/getlocations_box.min.js',
      'getlocations_colorbox_path' => GETLOCATIONS_PATH . '/js/getlocations_colorbox.min.js',
      'getlocations_marker_box_path' => GETLOCATIONS_PATH . '/js/getlocations_marker_box.min.js',
      'getlocations_views_path' => GETLOCATIONS_PATH . ($jq_upd ? '/js/getlocations_views_1.min.js' : '/js/getlocations_views.min.js'),
      'getlocations_icons_path' => GETLOCATIONS_PATH . '/js/icons.min.js',
      'getlocations_field_group_path' => GETLOCATIONS_PATH . '/js/getlocations_field_group.min.js',
      'getlocations_what3words_path' => GETLOCATIONS_PATH . '/js/getlocations_what3words.min.js',
    );
  }
  else {
    $defaults = array(
      'infobubble_path' => GETLOCATIONS_PATH . '/js/infobubble.js',
      'infobubble_options_path' => GETLOCATIONS_PATH . '/js/infobubble_options.js',
      'infobubble_extended_path' => GETLOCATIONS_PATH . '/js/infobubble_extended.js',
      'markermanager_path' => GETLOCATIONS_PATH . '/js/markermanager.js',
      'markerclusterer_path' => GETLOCATIONS_PATH . '/js/markerclusterer.js',
      'infowindow_options_path' => GETLOCATIONS_PATH . '/js/infowindow_options.js',
      'getlocations_path' => GETLOCATIONS_PATH . '/js/getlocations.js',
      'getlocations_polygons_path' => GETLOCATIONS_PATH . '/js/getlocations_polygons.js',
      'getlocations_rectangles_path' => GETLOCATIONS_PATH . '/js/getlocations_rectangles.js',
      'getlocations_circles_path' => GETLOCATIONS_PATH . '/js/getlocations_circles.js',
      'getlocations_polylines_path' => GETLOCATIONS_PATH . '/js/getlocations_polylines.js',
      'getlocations_categories_path' => GETLOCATIONS_PATH . '/js/getlocations_categories.js',
      'getlocations_search_places_path' => GETLOCATIONS_PATH . '/js/getlocations_search_places.js',
      'getlocations_geo_path' => GETLOCATIONS_PATH . '/js/getlocations_geo.js',
      'getlocations_preview_path' => GETLOCATIONS_PATH . '/js/getlocations_preview.js',
      'getlocations_geojson_path' => GETLOCATIONS_PATH . '/js/getlocations_geojson.js',
      #'getlocations_admin_path'         => GETLOCATIONS_PATH . '/js/getlocations_admin.js',
      'getlocations_admin_path' => GETLOCATIONS_PATH . ($jq_upd ? '/js/getlocations_admin_1.js' : '/js/getlocations_admin.js'),
      'getlocations_box_path' => GETLOCATIONS_PATH . '/js/getlocations_box.js',
      'getlocations_colorbox_path' => GETLOCATIONS_PATH . '/js/getlocations_colorbox.js',
      'getlocations_marker_box_path' => GETLOCATIONS_PATH . '/js/getlocations_marker_box.js',
      #'getlocations_views_path'         => GETLOCATIONS_PATH . '/js/getlocations_views.js',
      'getlocations_views_path' => GETLOCATIONS_PATH . ($jq_upd ? '/js/getlocations_views_1.js' : '/js/getlocations_views.js'),
      'getlocations_icons_path' => GETLOCATIONS_PATH . '/js/icons.js',
      'getlocations_field_group_path' => GETLOCATIONS_PATH . '/js/getlocations_field_group.js',
      'getlocations_what3words_path' => GETLOCATIONS_PATH . '/js/getlocations_what3words.js',
    );
  }
  if ($reset || $min) {
    $getlocations_paths = $defaults;
  }
  else {
    $settings = variable_get('getlocations_paths', $defaults);
    $getlocations_paths = getlocations_adjust_vars($defaults, $settings);
  }
  return $getlocations_paths;
}