You are here

function regcode_admin_settings in Registration codes 5

Same name and namespace in other branches
  1. 5.3 regcode_admin.inc.php \regcode_admin_settings()
  2. 6.2 regcode.admin.php \regcode_admin_settings()
  3. 6 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
Define menu items and page callbacks.

File

./regcode.module, line 79
regcode.module

Code

function regcode_admin_settings() {
  $form['regcode_codes'] = array(
    '#type' => 'textarea',
    '#title' => t('Registration code(s)'),
    '#required' => TRUE,
    '#default_value' => variable_get('regcode_codes', ''),
    '#description' => t('If set, new users must correctly enter one of these
      codes in order to register. Enter one code per line.'),
  );
  $form = system_settings_form($form);
  return $form;
}