You are here

function getlocations_mapquest_paths_get in Get Locations 7

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

Function

Return value

Returns

4 calls to getlocations_mapquest_paths_get()
getlocations_mapquest_field_formatter_settings_form in modules/getlocations_mapquest/getlocations_mapquest.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
getlocations_mapquest_plugin_style::options_form in modules/getlocations_mapquest/views/getlocations_mapquest_plugin_style.inc
Options form
getlocations_mapquest_settings_form in modules/getlocations_mapquest/getlocations_mapquest.module
Function
getlocations_mapquest_settings_validate in modules/getlocations_mapquest/getlocations_mapquest.module
Function

File

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

Code

function getlocations_mapquest_paths_get($reset = FALSE, $min = FALSE) {
  $jq_upd = getlocations_check_jquery_version(TRUE);
  if ($min) {
    $defaults = array(
      'getlocations_mapquest_path' => GETLOCATIONS_MAPQUEST_PATH . '/js/getlocations_mapquest.min.js',
      'getlocations_mapquest_formatter_path' => GETLOCATIONS_MAPQUEST_PATH . ($jq_upd ? '/js/getlocations_mapquest_formatter_1.min.js' : '/js/getlocations_mapquest_formatter.min.js'),
      'getlocations_mapquest_preview_path' => GETLOCATIONS_MAPQUEST_PATH . '/js/getlocations_mapquest_preview.min.js',
    );
  }
  else {
    $defaults = array(
      'getlocations_mapquest_path' => GETLOCATIONS_MAPQUEST_PATH . '/js/getlocations_mapquest.js',
      'getlocations_mapquest_formatter_path' => GETLOCATIONS_MAPQUEST_PATH . ($jq_upd ? '/js/getlocations_mapquest_formatter_1.js' : '/js/getlocations_mapquest_formatter.js'),
      'getlocations_mapquest_preview_path' => GETLOCATIONS_MAPQUEST_PATH . '/js/getlocations_mapquest_preview.js',
    );
  }
  if ($reset || $min) {
    $getlocations_mapquest_paths = $defaults;
  }
  else {
    $settings = variable_get('getlocations_mapquest_paths', $defaults);
    $getlocations_mapquest_paths = getlocations_adjust_vars($defaults, $settings);
  }
  return $getlocations_mapquest_paths;
}