You are here

function regcode_dynamic_handler_luhn in Registration codes 6.2

Luhn number handler

1 string reference to 'regcode_dynamic_handler_luhn'
regcode_dynamic_handlers in regcode_dynamic/regcode_dynamic.module
Grab all available dynamic code handlers

File

regcode_dynamic/regcode_dynamic.module, line 422
The dynamic code module creates codes on the fly as they are used.

Code

function regcode_dynamic_handler_luhn() {
  $form = array();
  $form['startnumber'] = array(
    '#type' => 'textfield',
    '#title' => t('Start number'),
    '#description' => t('The number to start from'),
    '#default_value' => variable_get('startnumber', 1000000000),
    '#required' => TRUE,
  );
  $form['length'] = array(
    '#type' => 'textfield',
    '#title' => t('Code length'),
    '#description' => t('The length of the dynamic code'),
    '#default_value' => variable_get('length', 10),
    '#required' => TRUE,
  );
  return $form;
}