From 1db338e0e1701a2cda518d23c9c5eafdfb4d922c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 19 Apr 2008 14:44:34 +0000 Subject: - Patch #248140 by thehong: usability: add destination to user editing page link on personal contact form. --- modules/contact/contact.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index d801024f9..c0d90f194 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -158,7 +158,7 @@ function contact_user_page($account) { global $user; if (!valid_email_address($user->mail)) { - $output = t('You need to provide a valid e-mail address to contact other users. Please update your user information and try again.', array('@url' => url("user/$user->uid/edit"))); + $output = t('You need to provide a valid e-mail address to contact other users. Please update your user information and try again.', array('@url' => url("user/$user->uid/edit", array('query' => 'destination=' . drupal_get_destination())))); } else if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3)) && !user_access('administer site-wide contact form')) { $output = t("You cannot send more than %number messages per hour. Please try again later.", array('%number' => variable_get('contact_hourly_threshold', 3))); -- cgit v1.2.3