You are here

function farm_mapknitter_form in farmOS 7

MapKnitter configuration form.

1 string reference to 'farm_mapknitter_form'
farm_mapknitter_menu in modules/farm/farm_mapknitter/farm_mapknitter.module
Implements hook_menu().

File

modules/farm/farm_mapknitter/farm_mapknitter.module, line 56
Code for the Farm MapKnitter module.

Code

function farm_mapknitter_form($form, &$form_state) {

  // MapKnitter layer title.
  $form['farm_mapknitter_title'] = array(
    '#type' => 'textfield',
    '#title' => t('MapKnitter layer title'),
    '#description' => t('Give your MapKnitter layer a name. This will be used in the layer switcher '),
    '#default_value' => variable_get('farm_mapknitter_title', ''),
  );

  // MapKnitter slug.
  $form['farm_mapknitter_slug'] = array(
    '#type' => 'textfield',
    '#title' => t('MapKnitter Slug'),
    '#description' => t('Enter the unique MapKnitter slug. This would be the [map-slug] part in your MapKnitter map URL: http://mapknitter.org/maps/[map-slug]'),
    '#default_value' => variable_get('farm_mapknitter_slug', ''),
  );
  return system_settings_form($form);
}