I was not able to translete "Click here to set password" warning because string contains HTML. This is how I changed the module so please patch it. Change this in gauth_login.module:
if (variable_get('gauth_login_prom_message', TRUE)) {
drupal_set_message(t("Click <a href=@url target=_blank>here</a> to set password", array('@url' => url('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $token))))), 'warning');
}
to this:
$pass_url = url('user/' . $user->uid . '/edit', array('query' => array('pass-reset-token' => $token)));
if (variable_get('gauth_login_prom_message', TRUE)) {
drupal_set_message('<a href="' . $pass_url . '" target="_blank">' . t('Click here to set password') . '</a>', 'warning');
}
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | gauth-2767083-5.patch | 1.25 KB | twistor |
| #3 | warning-string-contains-html.patch | 1.14 KB | ashwinsh |
Comments
Comment #2
jasom commentedComment #3
ashwinshAttached patch file for this, please review it.
Thank you,
Comment #4
jasom commentedpatch worked, tnks
Comment #5
twistor commentedMore correct patch.
Comment #7
sadashiv commentedHi,
Committed this change. Will be out in next release.
Thanks,
Sadashiv.