You are here

function getlocations_search_paths_get in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_search/getlocations_search.module \getlocations_search_paths_get()
5 calls to getlocations_search_paths_get()
getlocations_search_getmap in modules/getlocations_search/getlocations_search.module
Set up the map and use getlocations to spit it out
getlocations_search_settings_form in modules/getlocations_search/getlocations_search.admin.inc
Function to display the getlocations_search admin settings form
getlocations_search_settings_validate in modules/getlocations_search/getlocations_search.admin.inc
getlocations_tools_export_form in modules/getlocations_tools/getlocations_tools.module
_getlocations_search_settings_form in modules/getlocations_search/getlocations_search.admin.inc

File

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

Code

function getlocations_search_paths_get($reset = FALSE, $min = FALSE) {
  $jq_upd = getlocations_check_jquery_version(TRUE);
  if ($min) {
    $defaults = array(
      'getlocations_search_path' => GETLOCATIONS_SEARCH_PATH . '/js/getlocations_search.min.js',
      'getlocations_search_admin_path' => GETLOCATIONS_SEARCH_PATH . ($jq_upd ? '/js/getlocations_search_admin_1.min.js' : '/js/getlocations_search_admin.min.js'),
    );
  }
  else {
    $defaults = array(
      'getlocations_search_path' => GETLOCATIONS_SEARCH_PATH . '/js/getlocations_search.js',
      'getlocations_search_admin_path' => GETLOCATIONS_SEARCH_PATH . ($jq_upd ? '/js/getlocations_search_admin_1.js' : '/js/getlocations_search_admin.js'),
    );
  }
  if ($reset || $min) {
    $getlocations_search_paths = $defaults;
  }
  else {
    $settings = variable_get('getlocations_search_paths', $defaults);
    $getlocations_search_paths = getlocations_adjust_vars($defaults, $settings);
  }
  return $getlocations_search_paths;
}