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.
To redirect the user after the login back to the webform i have changed line1019 of the webform.module into
$message = t('You must <a href="!login">login</a> or <a href="!register">register</a> to view this form.', array('!login' => url(('user/login'), drupal_get_destination()), '!register' => url(('user/register'), drupal_get_destination())));
greetings
MM
Comment | File | Size | Author |
---|---|---|---|
#2 | webform_module_login.patch | 1.04 KB | guignonv |
Comments
Comment #1
quicksketchThanks. A patch file would be more appropriate, since the line numbers tend to change during development. However I see what's being accomplished here, so I'll move to the patch queue.
Comment #2
guignonv CreditAttribution: guignonv commentedHere is the patch for the issue described above but for Drupal 6.
Bascially, "url(('user/register'), drupal_get_destination())" becomes "url(('user/register'), array('query' => drupal_get_destination()))".
Comment #3
quicksketchThanks guys! Committed.