Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using Login Toboggan to create a "Confirm e-mail address" field on the user registration page. In order to pre-populate this field I changed the Gigya's module weight to "1" (instead of "0") in the system table (so it runs after Login Toboggan), and then added the following code to the gigya.module in the hook_form_alter() around line 691:
// If Login Toboggan created a new confirmation mail field, prepopulate it as well
if ($form_account['conf_mail']) {
$form_account['conf_mail']['#default_value'] = (empty($bio['email']) ? '' : $bio['email']);
}
Comments
Comment #1
azinck CreditAttribution: azinck commentedThanks -- this is a good idea. I'll incorporate it.
Comment #2
azinck CreditAttribution: azinck commentedin dev