You are here

function getlocations_element_map_markeraction in Get Locations 7.2

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

Function

Return value

Returns form element

1 call to getlocations_element_map_markeraction()
getlocations_markeraction_form in ./getlocations.module

File

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

Code

function getlocations_element_map_markeraction($default) {
  $element = array(
    '#type' => 'select',
    '#title' => t('Marker action'),
    '#default_value' => $default,
    '#options' => array(
      0 => t('None'),
      1 => t('InfoWindow'),
      2 => t('InfoBubble'),
      3 => t('Link'),
    ),
    '#description' => t("'None' is No action,") . '<br />' . t("'InfoWindow' show information in a Google InfoWindow,") . '<br />' . t("'InfoBubble' use InfoBubble instead,") . '<br />' . t("'Link' go to a page."),
  );
  return $element;
}