You are here

function registration_role_admin_settings in Registration role 5

Same name and namespace in other branches
  1. 6 registration_role.module \registration_role_admin_settings()
  2. 7 registration_role.module \registration_role_admin_settings()

Define the settings form.

1 string reference to 'registration_role_admin_settings'
registration_role_menu in ./registration_role.module
Implementation of hook_menu().

File

./registration_role.module, line 50

Code

function registration_role_admin_settings() {
  $roles = user_roles(TRUE);
  unset($roles['2']);
  $form['registration_role_roles'] = array(
    '#type' => 'radios',
    '#title' => t('Select role to automatically assign to new users'),
    '#options' => $roles,
    '#default_value' => variable_get('registration_role_roles', ''),
    '#description' => t('The selected role will be assigned to new registrants from now on.  Be sure this role does not have any privileges you fear giving out without reviewing who receives it.'),
  );

  // $form['array_filter'] = array('#type' => 'hidden');
  // Drupal 5, mysterious, needed for multiple check box values using settings hook
  return system_settings_form($form);
}