You are here

function google_map_field_theme in Google Map Field 7.2

Same name and namespace in other branches
  1. 8 google_map_field.module \google_map_field_theme()
  2. 7 google_map_field.module \google_map_field_theme()

Implements hook_theme().

File

./google_map_field.module, line 390
This file defines all the necessary hooks and functions to create a Google Map Field field type for inserting maps directly into content items (node, entities etc).

Code

function google_map_field_theme($existing, $type, $theme, $path) {
  if ($type == 'module') {
    return array(
      'google_map_field' => array(
        'variables' => array(
          'name' => NULL,
          'lat' => NULL,
          'lng' => NULL,
          'zoom' => NULL,
        ),
        'template' => 'google-map-field',
        'path' => drupal_get_path('module', 'google_map_field') . '/theme',
      ),
    );
  }
  return array();
}