function regcode_voucher in Registration codes 6
Same name and namespace in other branches
- 6.2 regcode_voucher/regcode_voucher.module \regcode_voucher()
User code entry page
1 string reference to 'regcode_voucher'
- regcode_voucher_menu in regcode_voucher/
regcode_voucher.module - Implementation of hook_menu().
File
- regcode_voucher/
regcode_voucher.module, line 74
Code
function regcode_voucher() {
$form = array();
$form['regcode_introtext'] = array(
'#type' => 'markup',
'#value' => 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;
}