function getlocations_fields_paths_get in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_paths_get()
10 calls to getlocations_fields_paths_get()
- getlocations_fields_field_formatter_settings_form in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
- getlocations_fields_field_formatter_settings_summary in modules/
getlocations_fields/ getlocations_fields.module - Implements hook_field_formatter_settings_summary(). Returns a short summary for the current formatter settings of an instance.
- getlocations_fields_getmap in modules/
getlocations_fields/ getlocations_fields.module - input map
- 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_fields_input_settings_form in modules/
getlocations_fields/ getlocations_fields.module - input settings form for sharing
File
- modules/
getlocations_fields/ getlocations_fields.module, line 3925 - getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_paths_get($reset = FALSE, $min = FALSE) {
$jq_upd = getlocations_check_jquery_version(TRUE);
if ($min) {
$defaults = array(
'getlocations_fields_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields.min.js',
'getlocations_fields_preview_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_preview.min.js',
'getlocations_fields_streetview_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_streetview.min.js',
'getlocations_fields_admin_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_admin_1.min.js' : '/js/getlocations_fields_admin.min.js'),
'getlocations_fields_formatter_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_formatter_1.min.js' : '/js/getlocations_fields_formatter.min.js'),
'getlocations_fields_views_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_views_1.min.js' : '/js/getlocations_fields_views.min.js'),
'getlocations_fields_search_views_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_search_views.min.js',
);
}
else {
$defaults = array(
'getlocations_fields_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields.js',
'getlocations_fields_preview_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_preview.js',
'getlocations_fields_streetview_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_streetview.js',
'getlocations_fields_admin_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_admin_1.js' : '/js/getlocations_fields_admin.js'),
'getlocations_fields_formatter_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_formatter_1.js' : '/js/getlocations_fields_formatter.js'),
'getlocations_fields_views_path' => GETLOCATIONS_FIELDS_PATH . ($jq_upd ? '/js/getlocations_fields_views_1.js' : '/js/getlocations_fields_views.js'),
'getlocations_fields_search_views_path' => GETLOCATIONS_FIELDS_PATH . '/js/getlocations_fields_search_views.js',
);
}
if ($reset || $min) {
$getlocations_fields_paths = $defaults;
}
else {
$settings = variable_get('getlocations_fields_paths', $defaults);
$getlocations_fields_paths = getlocations_adjust_vars($defaults, $settings);
}
return $getlocations_fields_paths;
}