function google_map_field_theme in Google Map Field 7
Same name and namespace in other branches
- 8 google_map_field.module \google_map_field_theme()
- 7.2 google_map_field.module \google_map_field_theme()
Implements hook_theme().
File
- ./
google_map_field.module, line 429 - This file defines all the necessary hooks and functions to create a Google Map Field field type and also a WYSIWYG editor plugin for inserting maps directly into filtered content.
Code
function google_map_field_theme($existing, $type, $theme, $path) {
if ($type == 'module') {
return array(
'google_map_field' => array(
'variables' => array(
'name' => NULL,
'map_id' => NULL,
),
'template' => 'google-map-field',
'path' => drupal_get_path('module', 'google_map_field') . '/theme',
),
'google_map_field_map_selector' => array(
'render_element' => 'element',
),
'google_map_field_map_picker' => array(
'render_element' => 'element',
),
'google_map_field_map_token' => array(
'render_element' => 'element',
'variables' => array(
'delta' => NULL,
'width' => NULL,
'height' => NULL,
),
),
);
}
return array();
}