You are here

function getlocations_element_map_marker in Get Locations 7

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.2 getlocations.module \getlocations_element_map_marker()

Function

Return value

Returns form element

10 calls to getlocations_element_map_marker()
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
getlocations_mapquest_plugin_style::options_form in modules/getlocations_mapquest/views/getlocations_mapquest_plugin_style.inc
Options form

... See full list

File

./getlocations.module, line 3320
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;
}