Closed (fixed)
Project:
Webform
Version:
6.x-2.4
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2009 at 09:09 UTC
Updated:
28 Feb 2009 at 06:20 UTC
Jump to comment: Most recent file
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
guignonvHere 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.