You are here

function location_display in Location 6.3

Same name and namespace in other branches
  1. 5.3 location.module \location_display()
  2. 7.5 location.module \location_display()
  3. 7.3 location.module \location_display()
  4. 7.4 location.module \location_display()
2 calls to location_display()
location_node_nodeapi in ./location_node.module
Implementation of hook_nodeapi().
location_user_user in ./location_user.module
Implementation of hook_user().

File

./location.module, line 1842
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'])) {

    // We weren't configured properly, bail.
    return array();
  }
  $hide = array_keys(array_filter($settings['display']['hide']));

  // Show all locations
  return array(
    '#type' => 'markup',
    '#value' => theme('locations', $locations, $hide),
    '#weight' => $settings['display']['weight'],
  );
}