function regcode_admin_settings in Registration codes 7
Same name and namespace in other branches
- 5.3 regcode_admin.inc.php \regcode_admin_settings()
- 5 regcode.module \regcode_admin_settings()
- 6.2 regcode.admin.php \regcode_admin_settings()
- 6 regcode.admin.php \regcode_admin_settings()
- 7.2 regcode.admin.inc \regcode_admin_settings()
Settings page form.
1 string reference to 'regcode_admin_settings'
- regcode_menu in ./
regcode.module - Implements hook_menu().
File
- ./
regcode.admin.php, line 76 - Functions and pages needed for the admin UI of regcode module.
Code
function regcode_admin_settings() {
$form = array();
$form['regcode_fieldset_title'] = array(
'#type' => 'textfield',
'#title' => t('Field set title'),
'#description' => t('The title of the registration code fieldset'),
'#required' => TRUE,
'#default_value' => variable_get('regcode_fieldset_title', t('Registration Code')),
);
$form['regcode_field_title'] = array(
'#type' => 'textfield',
'#title' => t('Field label'),
'#description' => t('The label of the registration code textfield'),
'#required' => TRUE,
'#default_value' => variable_get('regcode_field_title', t('Registration Code')),
);
$form['regcode_field_description'] = array(
'#type' => 'textarea',
'#title' => t('Field description'),
'#description' => t('The description under the registration code textfield'),
'#rows' => 2,
'#default_value' => variable_get('regcode_field_description', t('Please enter your registration code.')),
);
$form['regcode_vocabulary'] = array(
'#type' => 'select',
'#title' => t('Vocabulary'),
'#options' => _regcode_get_taxonomy_vocabularies(),
'#required' => TRUE,
'#default_value' => variable_get('regcode_vocabulary', 1),
'#description' => t('The vocabulary used to classify registration codes.'),
);
$form['regcode_optional'] = array(
'#type' => 'checkbox',
'#title' => t('Make registration code optional'),
'#default_value' => variable_get('regcode_optional', 0),
'#description' => t('If checked, users can register without a registration code.'),
);
return system_settings_form($form);
}