You are here

function template_preprocess_gmap_view_gmap in GMap Module 6.2

Same name and namespace in other branches
  1. 6 gmap.module \template_preprocess_gmap_view_gmap()
  2. 7.2 gmap.module \template_preprocess_gmap_view_gmap()
  3. 7 gmap.module \template_preprocess_gmap_view_gmap()

Preprocess function for theme_gmap_view_gmap().

File

./gmap.module, line 1335
GMap -- Routines to use the Google Maps API in Drupal.

Code

function template_preprocess_gmap_view_gmap(&$vars) {
  $vars['map_object'] = $vars['rows'];

  // Rows is actually our map object.
  unset($vars['rows']);

  // Theme the map.
  $vars['map'] = theme('gmap', array(
    '#settings' => $vars['map_object'],
  ));
}