You are here

function getlocations_element_map_tf in Get Locations 7

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_element_map_tf()
  2. 6 getlocations.module \getlocations_element_map_tf()
  3. 7.2 getlocations.module \getlocations_element_map_tf()

Function

Return value

Returns form element

24 calls to getlocations_element_map_tf()
getlocations_cloudmade_settings_form in modules/getlocations_cloudmade/getlocations_cloudmade.module
getlocations_element_path in ./getlocations.module
Function
getlocations_fields_display_settings_form in modules/getlocations_fields/getlocations_fields.module
display settings form for sharing
getlocations_fields_field_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_settings_form(). Add settings to a field settings form.
getlocations_fields_handler_filter_distance::value_form in modules/getlocations_fields/handlers/getlocations_fields_handler_filter_distance.inc
Options form subform for setting options.

... See full list

File

./getlocations.module, line 3343
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_element_map_tf($title, $default, $description = '', $size = 60, $maxlength = 255, $required = FALSE, $weight = '') {
  $element = array(
    '#type' => 'textfield',
    '#title' => $title,
    '#default_value' => $default,
    '#size' => $size,
    '#maxlength' => $maxlength,
  );
  if ($required) {
    $element['#required'] = TRUE;
  }
  if ($description) {
    $element['#description'] = $description;
  }
  if (is_numeric($weight)) {
    $element['#weight'] = $weight;
  }
  return $element;
}