You are here

function regcode_voucher_profiletab_form in Registration codes 7

Same name and namespace in other branches
  1. 7.2 regcode_voucher/regcode_voucher.module \regcode_voucher_profiletab_form()

User code entry page.

1 string reference to 'regcode_voucher_profiletab_form'
regcode_voucher_menu in regcode_voucher/regcode_voucher.module
Implements hook_menu().

File

regcode_voucher/regcode_voucher.module, line 86
Main code and hooks for regcode voucher module.

Code

function regcode_voucher_profiletab_form() {
  $form = array();
  $form['regcode_introtext'] = array(
    '#markup' => filter_xss_admin(variable_get('regcode_voucher_introtext', '')),
  );
  $form['regcode_code'] = array(
    '#type' => 'textfield',
    '#title' => check_plain(variable_get('regcode_voucher_field_title', t('Registration Code'))),
    '#description' => check_plain(variable_get('regcode_voucher_field_description', t('Please enter your registration code.'))),
    '#required' => FALSE,
  );
  $form['regcode_submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}