You are here

function regcode_admin_settings in Registration codes 6

Same name and namespace in other branches
  1. 5.3 regcode_admin.inc.php \regcode_admin_settings()
  2. 5 regcode.module \regcode_admin_settings()
  3. 6.2 regcode.admin.php \regcode_admin_settings()
  4. 7.2 regcode.admin.inc \regcode_admin_settings()
  5. 7 regcode.admin.php \regcode_admin_settings()

Return the form associated with the module settings.

Return value

The settings form.

1 string reference to 'regcode_admin_settings'
regcode_menu in ./regcode.module
Implementation of hook_menu().

File

./regcode.admin.php, line 16
Functions and pages needed for the administration interface for the 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'),
    '#default_value' => variable_get('regcode_fieldset_title', 'Registration Code'),
  );
  $form['regcode_field_title'] = array(
    '#type' => 'textfield',
    '#title' => t('Field label'),
    '#description' => t('The label of the registration code textfield'),
    '#default_value' => variable_get('regcode_field_title', 'Registration Code'),
  );
  $form['regcode_field_description'] = array(
    '#type' => 'textfield',
    '#title' => t('Field description'),
    '#description' => t('The description under the registration code textfield'),
    '#default_value' => variable_get('regcode_field_description', 'Please enter your registration code.'),
  );
  $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);
}