You are here

function multiple_registration_default_registration_form in Multiple Registration 7

Provides an ability for disabling default user registration form.

_state

Parameters

$form:

Return value

mixed

1 string reference to 'multiple_registration_default_registration_form'
multiple_registration_menu in ./multiple_registration.module
Implements hook_menu().

File

./multiple_registration.module, line 677
Add ability to create several registration pages.

Code

function multiple_registration_default_registration_form($form, $form_state) {
  $form['disable_default_registration_form'] = [
    '#type' => 'checkbox',
    '#title' => 'Disable default registration form?',
    '#default_value' => variable_get('disable_default_registration_form', 'FALSE'),
  ];
  $form = system_settings_form($form);
  return $form;
}