You are here

function geolocation_theme in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 geolocation.module \geolocation_theme()
  2. 8.2 geolocation.module \geolocation_theme()
  3. 6 geolocation.module \geolocation_theme()
  4. 7 geolocation.module \geolocation_theme()

Implements hook_theme().

File

./geolocation.module, line 38
Defines a simple geolocation field type.

Code

function geolocation_theme() {
  return [
    'geolocation_map_formatter' => [
      'variables' => [
        'locations' => NULL,
        'latitude' => NULL,
        'longitude' => NULL,
        'uniqueid' => NULL,
      ],
      'template' => 'geolocation-map-formatter',
    ],
    'geolocation_latlng_formatter' => [
      'variables' => [
        'lat' => NULL,
        'lng' => NULL,
      ],
      'template' => 'geolocation-latlng-formatter',
    ],
    'geolocation_sexagesimal_formatter' => [
      'variables' => [
        'lat' => NULL,
        'lng' => NULL,
      ],
      'template' => 'geolocation-sexagesimal-formatter',
    ],
    'geolocation_common_map_display' => [
      'variables' => [
        'centre' => NULL,
        'fitbounds' => NULL,
        'clientlocation' => NULL,
        'locations' => NULL,
        'id' => NULL,
        'view' => NULL,
      ],
    ],
    'geolocation_common_map_location' => [
      'variables' => [
        'content' => NULL,
        'title' => NULL,
        'position' => NULL,
        'location_id' => NULL,
        'disable_marker' => NULL,
        'icon' => NULL,
        'marker_label' => NULL,
      ],
    ],
  ];
}