You are here

function google_map_field_theme in Google Map Field 8

Same name and namespace in other branches
  1. 7.2 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 11
Contains google_map_field.module.

Code

function google_map_field_theme($existing, $type, $theme, $path) {
  return [
    'google_map_field' => [
      'variables' => [
        'name' => NULL,
        'lat' => NULL,
        'lon' => NULL,
        'zoom' => NULL,
        'type' => NULL,
        'width' => NULL,
        'height' => NULL,
        'show_marker' => NULL,
        'marker_icon' => NULL,
        'traffic' => NULL,
        'show_controls' => NULL,
        'infowindow' => NULL,
      ],
      'template' => 'google_map_field',
    ],
    'google_map_field_embed' => [
      'variables' => [
        'name' => NULL,
        'lat' => NULL,
        'lon' => NULL,
        'zoom' => NULL,
        'type' => NULL,
        'width' => NULL,
        'height' => NULL,
        'show_marker' => NULL,
        'show_controls' => NULL,
        'infowindow' => NULL,
        'api_key' => NULL,
      ],
      'template' => 'google_map_field_embed',
    ],
    'olmap_field' => [
      'variables' => [
        'name' => NULL,
        'lat' => NULL,
        'lon' => NULL,
        'zoom' => NULL,
        'width' => NULL,
        'height' => NULL,
        'show_marker' => NULL,
        'show_controls' => NULL,
        'infowindow' => NULL,
        'default_marker' => NULL,
      ],
      'template' => 'olmap_field',
    ],
  ];
}