add earlyaccess code generation

This commit is contained in:
2017-06-29 12:40:47 +10:00
parent e90d02f46e
commit b5d9b5ea7f
4 changed files with 73 additions and 9 deletions

View File

@@ -627,6 +627,14 @@ function booking_admin() {
t('Yes')
),
'#default_value' => variable_get('booking_enable_earlyaccess_codes', 0)
);
$form['regn_options']['booking_earlyaccess_codes_count'] = array(
'#type' => 'textfield',
'#title' => t('Number of early access codes'),
'#description' => t("Set to the number of early access codes to generate. You will need to visit the configuration page to actually generate these codes."),
'#size' => 3,
'#maxlength' => 3,
'#default_value' => variable_get('booking_earlyaccess_codes_count', '0'),
);
$form['management'] = array(