You are here

function getlocations_element_map_marker in Get Locations 7.2

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

Function

Return value

Returns form element

11 calls to getlocations_element_map_marker()
getlocations_fields_field_formatter_settings_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_formatter_settings_form(). Returns form elements for a formatter's settings.
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_field_widget_form in modules/getlocations_fields/getlocations_fields.module
Implements hook_field_widget_form(). Return the form for a single field widget.
getlocations_fields_views_search_form in modules/getlocations_fields/getlocations_fields.functions.inc
Provides a form for congfiguring search marker
getlocations_leaflet_plugin_style::options_form in modules/getlocations_leaflet/views/getlocations_leaflet_plugin_style.inc
Options form

... See full list

File

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

Code

function getlocations_element_map_marker($title, $options, $default, $description = '') {
  $element = array(
    '#type' => 'select',
    '#title' => $title,
    '#options' => $options,
    '#default_value' => $default,
  );
  if ($description) {
    $element['#description'] = $description;
  }
  return $element;
}