function getlocations_element_map_tf in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_element_map_tf()
- 7.2 getlocations.module \getlocations_element_map_tf()
- 7 getlocations.module \getlocations_element_map_tf()
3 calls to getlocations_element_map_tf()
- getlocations_map_display_options_form in ./
getlocations.module - getlocations_plugin_style_map::options_form in ./
getlocations_plugin_style_map.inc - getlocations_settings_form in ./
getlocations.admin.inc - Function to display the getlocations admin settings form
File
- ./
getlocations.module, line 1246 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_element_map_tf($title, $default, $size, $maxlength, $description = '', $required = TRUE) {
$element = array(
'#type' => 'textfield',
'#title' => $title,
'#default_value' => $default,
'#size' => $size,
'#maxlength' => $maxlength,
'#required' => $required,
);
if ($description) {
$element['#description'] = $description;
}
return $element;
}