You are here

function locationmap_in_place_edit_form in Location Map 7.2

Same name and namespace in other branches
  1. 8.2 locationmap.module \locationmap_in_place_edit_form()
  2. 7 locationmap.module \locationmap_in_place_edit_form()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'locationmap_in_place_edit_form'
locationmap_page in ./locationmap.module
Menu callback; generate a page with the location map.

File

./locationmap.module, line 379

Code

function locationmap_in_place_edit_form($form, &$form_state) {
  $form['#submit'][] = 'system_settings_form_submit';
  $form['description'] = array(
    '#prefix' => '<p>',
    '#markup' => t('Click and drag marker to fine tune position of your location. Set zoom level below.'),
    '#suffix' => '</p>',
  );
  $form['locationmap_lat'] = array(
    '#type' => 'textfield',
    '#title' => t('Latitude'),
    '#default_value' => variable_get('locationmap_lat', ''),
  );
  $form['locationmap_lng'] = array(
    '#type' => 'textfield',
    '#title' => t('Longitude'),
    '#default_value' => variable_get('locationmap_lng', ''),
  );
  $form['locationmap_zoom'] = array(
    '#type' => 'textfield',
    '#title' => t('Zoom level'),
    '#default_value' => variable_get('locationmap_zoom', ''),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save new location and zoom level'),
  );
  return $form;
}