From 9f5a97d6b72731abfb0a4086feb37a525e1f366b Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 22 Feb 2005 06:16:40 +0000 Subject: - Fix double spaces in contact.module help and code. --- modules/contact.module | 8 ++++---- modules/contact/contact.module | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/contact.module b/modules/contact.module index 1851b9662..627f6ca3a 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -43,7 +43,7 @@ function contact_menu($may_cache) { */ function contact_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { - return array(array('title' => t('Contact settings'), 'data' => form_checkbox(t('Personal contact form'), 'contact', 1, $edit['contact'], t('Allow other users to contact you by e-mail via your personal contact form. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.', array('%url' => "user/$user->uid/contact"))), 'weight' => 2)); + return array(array('title' => t('Contact settings'), 'data' => form_checkbox(t('Personal contact form'), 'contact', 1, $edit['contact'], t('Allow other users to contact you by e-mail via your personal contact form. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.', array('%url' => "user/$user->uid/contact"))), 'weight' => 2)); } if ($type == 'validate') { return array('contact' => $edit['contact']); @@ -61,10 +61,10 @@ function contact_mail_user() { $output = t('Please login or register to send %name a message.', array('%login' => url('user/login'), '%register' => url('user/register'), '%name' => $account->name)); } else if (!valid_email_address($user->mail)) { - $output = t('You need to provide a valid e-mail address to contact other users. Please edit your user information.', array('%url' => url("user/$user->uid/edit"))); + $output = t('You need to provide a valid e-mail address to contact other users. Please edit your user information.', array('%url' => url("user/$user->uid/edit"))); } else if (!flood_is_allowed('contact', CONTACT_HOURLY_THRESHOLD)) { - $output = t("You can't contact more than %number users per hour. Please try again later.", array('%number' => CONTACT_HOURLY_THRESHOLD)); + $output = t("You can't contact more than %number users per hour. Please try again later.", array('%number' => CONTACT_HOURLY_THRESHOLD)); } else { $edit = $_POST['edit']; @@ -72,7 +72,7 @@ function contact_mail_user() { if ($edit) { // Validate the message: if (!$edit['message']) { - form_set_error('message', t('You must enter a message.')); + form_set_error('message', t('You must enter a message.')); } if (!$edit['subject']) { form_set_error('subject', t('You must enter a subject.')); diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 1851b9662..627f6ca3a 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -43,7 +43,7 @@ function contact_menu($may_cache) { */ function contact_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { - return array(array('title' => t('Contact settings'), 'data' => form_checkbox(t('Personal contact form'), 'contact', 1, $edit['contact'], t('Allow other users to contact you by e-mail via your personal contact form. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.', array('%url' => "user/$user->uid/contact"))), 'weight' => 2)); + return array(array('title' => t('Contact settings'), 'data' => form_checkbox(t('Personal contact form'), 'contact', 1, $edit['contact'], t('Allow other users to contact you by e-mail via your personal contact form. Note that your e-mail address is not made public and that privileged users such as site administrators are able to contact you even if you choose not to enable this feature.', array('%url' => "user/$user->uid/contact"))), 'weight' => 2)); } if ($type == 'validate') { return array('contact' => $edit['contact']); @@ -61,10 +61,10 @@ function contact_mail_user() { $output = t('Please login or register to send %name a message.', array('%login' => url('user/login'), '%register' => url('user/register'), '%name' => $account->name)); } else if (!valid_email_address($user->mail)) { - $output = t('You need to provide a valid e-mail address to contact other users. Please edit your user information.', array('%url' => url("user/$user->uid/edit"))); + $output = t('You need to provide a valid e-mail address to contact other users. Please edit your user information.', array('%url' => url("user/$user->uid/edit"))); } else if (!flood_is_allowed('contact', CONTACT_HOURLY_THRESHOLD)) { - $output = t("You can't contact more than %number users per hour. Please try again later.", array('%number' => CONTACT_HOURLY_THRESHOLD)); + $output = t("You can't contact more than %number users per hour. Please try again later.", array('%number' => CONTACT_HOURLY_THRESHOLD)); } else { $edit = $_POST['edit']; @@ -72,7 +72,7 @@ function contact_mail_user() { if ($edit) { // Validate the message: if (!$edit['message']) { - form_set_error('message', t('You must enter a message.')); + form_set_error('message', t('You must enter a message.')); } if (!$edit['subject']) { form_set_error('subject', t('You must enter a subject.')); -- cgit v1.2.3