function location_display in Location 7.5
Same name and namespace in other branches
- 5.3 location.module \location_display()
- 6.3 location.module \location_display()
- 7.3 location.module \location_display()
- 7.4 location.module \location_display()
File
- ./location.module, line 1879
- Location module main routines.
An implementation of a universal API for location manipulation. Provides functions for
postal_code proximity searching, deep-linking into online mapping services. Currently,
some options are configured through an…
Code
function location_display($settings, $locations) {
if (!isset($settings['display']['hide'])) {
return array();
}
$hide = array_keys(array_filter($settings['display']['hide']));
return array(
'#type' => 'markup',
'#theme' => 'locations',
'#locations' => $locations,
'#hide' => $hide,
'#weight' => $settings['display']['weight'],
);
}