You are here

function theme_geolocation_formatter_default in Geolocation Field 6

Theme function for 'default' geolocation field formatter.

$element['#item']: the sanitized $delta value for the item, $element['#field_name']: the field name, $element['#type_name']: the $node->type, $element['#formatter']: the $formatter_name, $element'#node']: the $node, $element['#delta']: the delta of this item, like '0',

File

./geolocation.module, line 242

Code

function theme_geolocation_formatter_default($element) {
  return '<p>' . t('Geolocation is @lat, @lng', array(
    '@lat' => $element['#item']['lat'],
    '@lng' => $element['#item']['lng'],
  )) . '</p>';
}