You are here

function getlocations_gps_paths_get in Get Locations 7

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

Javascript paths.

Parameters

bool $reset: Set to true to force reset.

bool $min: Set to true to provide minified versions.

Return value

array

4 calls to getlocations_gps_paths_get()
getlocations_gps_js_do in modules/getlocations_gps/getlocations_gps.module
Add js and css to page.
getlocations_gps_settings_form in modules/getlocations_gps/getlocations_gps.module
Function to display the getlocations_gps admin settings form
getlocations_gps_settings_validate in modules/getlocations_gps/getlocations_gps.module
Admin settings form validation.
_getlocations_gps_map_display_options_form in modules/getlocations_gps/getlocations_gps.module
Actual settings form.

File

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

Code

function getlocations_gps_paths_get($reset = FALSE, $min = FALSE) {
  $jq_upd = getlocations_check_jquery_version(TRUE);
  if ($min) {
    $defaults = array(
      'getlocations_gps_path' => GETLOCATIONS_GPS_PATH . '/js/getlocations_gps.min.js',
      'getlocations_gps_admin_path' => GETLOCATIONS_GPS_PATH . ($jq_upd ? '/js/getlocations_gps_admin_1.min.js' : '/js/getlocations_gps_admin.min.js'),
    );
  }
  else {
    $defaults = array(
      'getlocations_gps_path' => GETLOCATIONS_GPS_PATH . '/js/getlocations_gps.js',
      'getlocations_gps_admin_path' => GETLOCATIONS_GPS_PATH . ($jq_upd ? '/js/getlocations_gps_admin_1.js' : '/js/getlocations_gps_admin.js'),
    );
  }
  if ($reset || $min) {
    $getlocations_gps_paths = $defaults;
  }
  else {
    $settings = variable_get('getlocations_gps_paths', $defaults);
    $getlocations_gps_paths = getlocations_adjust_vars($defaults, $settings);
  }
  return $getlocations_gps_paths;
}