You are here

function openlayers_test_rnd_int::options_form in Openlayers 6.2

Options form.

Overrides openlayers_style_plugin::options_form

File

tests/plugins/style_plugin/openlayers_test_rnd_int.inc, line 37
Test

Class

openlayers_test_rnd_int
Style Plugin for testing purposes.

Code

function options_form($defaults = array()) {
  $form = array();

  // Allow use to pick the highest and lowest for random
  // point radius
  $form['low'] = array(
    '#type' => 'textfield',
    '#title' => t('Lowest value'),
    '#description' => t('Lowest value for the random integer.'),
    '#default_value' => isset($defaults['low']) ? $defaults['low'] : 2,
  );
  $form['high'] = array(
    '#type' => 'textfield',
    '#title' => t('Highest value'),
    '#description' => t('Highest value for the random integer.'),
    '#default_value' => isset($defaults['high']) ? $defaults['high'] : 10,
  );
  return $form;
}