function google_map_field_theme in Google Map Field 7.2
Same name and namespace in other branches
- 8 google_map_field.module \google_map_field_theme()
- 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();
}