You are here

function _addressfield_staticmap_render_address in Address Field Static Map 7

Helper function to render the address.

Parameters

array $address: An array of parts of an address.

Return value

string The rendered static map for the address.

3 calls to _addressfield_staticmap_render_address()
addressfield_staticmap_block_view in ./addressfield_staticmap.module
Implements hook_block_view().
addressfield_staticmap_clean_address in ./addressfield_staticmap.module
Returns a Google Maps-friendly address from the Address Field format.
addressfield_staticmap_field_formatter_view in ./addressfield_staticmap.module
Implements hook_field_formatter_view().

File

./addressfield_staticmap.module, line 808
Main file for the addressfield static map module.

Code

function _addressfield_staticmap_render_address(array $address) {

  // Set up some default arguments for addressfield_generate().
  $handlers = array(
    'address' => 'address',
  );
  $context = array(
    'mode' => 'render',
  );
  $address = addressfield_generate($address, $handlers, $context);
  return drupal_render($address);
}