function getlocations_leaflet_js_settings_do in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_js_settings_do()
Function
Return value
Returns
1 call to getlocations_leaflet_js_settings_do()
- theme_getlocations_leaflet_map in modules/
getlocations_leaflet/ getlocations_leaflet.module - Function
File
- modules/
getlocations_leaflet/ getlocations_leaflet.module, line 1663 - getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_leaflet_js_settings_do($defaults, $mapid) {
$settings = array(
$mapid => $defaults,
);
drupal_add_js(array(
'getlocations_leaflet' => $settings,
), 'setting');
}