You are here

function hook_multiple_registration_form_alter in Multiple Registration 7

Role-specific registration form alter hook.

1 invocation of hook_multiple_registration_form_alter()
multiple_registration_form_user_register_form_alter in ./multiple_registration.module
Implements hook_form_FORM_ID_alter().

File

./multiple_registration.api.php, line 11
Multiple Registration module API file.

Code

function hook_multiple_registration_form_alter(&$form, &$form_state, $rid) {
  $power_user = user_role_load_by_name('Power user');
  if (isset($power_user->rid) && $power_user->rid == $rid) {

    // Update form.
  }
}