You are here

function getlocations_element_map_zoom_controltype in Get Locations 7.2

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

Function

Return value

Returns form element

2 calls to getlocations_element_map_zoom_controltype()
getlocations_fields_sv_control_form in modules/getlocations_fields/getlocations_fields.module
getlocations_map_display_options_form in ./getlocations.module
Function

File

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

Code

function getlocations_element_map_zoom_controltype($default, $title = '') {
  if (empty($title)) {
    $title = t('Zoom Control type');
  }
  $element = array(
    '#type' => 'select',
    '#title' => $title,
    '#options' => array(
      'none' => t('None'),
      'default' => t('Default'),
      'small' => t('Small'),
      'large' => t('Large'),
    ),
    '#default_value' => $default,
  );
  return $element;
}