function theme_locationmap_map in Location Map 8.2
Same name and namespace in other branches
- 7.2 locationmap.module \theme_locationmap_map()
- 7 locationmap.module \theme_locationmap_map()
Format div to display a location map.
2 theme calls to theme_locationmap_map()
- locationmap_block_image in ./
locationmap.module - @todo Please document this function.
- locationmap_page in ./
locationmap.module - Menu callback; generate a page with the location map.
File
- ./
locationmap.module, line 359
Code
function theme_locationmap_map($variables) {
if (empty($variables['width'])) {
$width = variable_get('locationmap_width', '500') . 'px';
}
else {
$width = $variables['width'] . 'px';
}
if (empty($variables['height'])) {
$height = variable_get('locationmap_height', '500') . 'px';
}
else {
$height = $variables['height'] . 'px';
}
return '<div id="locationmap_map" style="width: ' . $width . '; height: ' . $height . '"></div>';
}