function geolocation_theme in Geolocation Field 8.3
Same name and namespace in other branches
- 8 geolocation.module \geolocation_theme()
- 8.2 geolocation.module \geolocation_theme()
- 6 geolocation.module \geolocation_theme()
- 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_wrapper' => [
'variables' => [
'attributes' => NULL,
'maptype' => NULL,
'locations' => NULL,
'centre' => NULL,
'id' => NULL,
'children' => NULL,
'controls' => NULL,
'context' => NULL,
],
],
'geolocation_map_location' => [
'variables' => [
'attributes' => NULL,
'children' => NULL,
'title' => NULL,
'coordinates' => NULL,
'id' => NULL,
'hidden' => NULL,
'icon' => NULL,
'label' => NULL,
],
],
'geolocation_map_polyline' => [
'variables' => [
'attributes' => NULL,
'children' => NULL,
'title' => NULL,
'coordinates' => NULL,
'stroke_color' => NULL,
'stroke_width' => NULL,
'stroke_opacity' => NULL,
],
],
'geolocation_map_polygon' => [
'variables' => [
'attributes' => NULL,
'children' => NULL,
'title' => NULL,
'coordinates' => NULL,
'stroke_color' => NULL,
'stroke_width' => NULL,
'stroke_opacity' => NULL,
'fill_color' => NULL,
'fill_opacity' => NULL,
],
],
'geolocation_latlng_formatter' => [
'variables' => [
'lat' => NULL,
'lng' => NULL,
],
'template' => 'geolocation-latlng-formatter',
],
'geolocation_sexagesimal_formatter' => [
'variables' => [
'lat' => NULL,
'lng' => NULL,
],
'template' => 'geolocation-sexagesimal-formatter',
],
];
}