function getlocations_init in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_init()
- 7.2 getlocations.module \getlocations_init()
- 7 getlocations.module \getlocations_init()
Implementation of hook_init().
File
- ./
getlocations.module, line 26 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_init() {
module_load_include('inc', 'getlocations', 'getlocations.theme');
if (module_exists('colorbox')) {
$getlocations_colorbox = variable_get('getlocations_colorbox', array(
'enable' => 0,
'width' => 600,
'height' => 600,
));
$settings = array(
'getlocations_colorbox' => $getlocations_colorbox,
);
drupal_add_js($settings, 'setting');
drupal_add_js(GETLOCATIONS_PATH . '/js/getlocations_colorbox.js');
}
}