summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-21 07:31:50 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-21 07:31:50 +0000
commitd12faf546d25dbae58654b8e52c403b00a2f8bcc (patch)
tree44cfe91753490fda3c412c717e652ec80b1998ab
parentdae2bdbb3b46021672bfc109d42b554c21f0d092 (diff)
downloadbrdo-d12faf546d25dbae58654b8e52c403b00a2f8bcc.tar.gz
brdo-d12faf546d25dbae58654b8e52c403b00a2f8bcc.tar.bz2
#54151, nicer formatting for contact.module, patch by Zen.
-rw-r--r--modules/contact.module10
-rw-r--r--modules/contact/contact.module10
2 files changed, 14 insertions, 6 deletions
diff --git a/modules/contact.module b/modules/contact.module
index 0e78ef6f9..f05f25419 100644
--- a/modules/contact.module
+++ b/modules/contact.module
@@ -95,8 +95,12 @@ function contact_menu($may_cache) {
}
else {
if (arg(0) == 'user' && is_numeric(arg(1))) {
- $items[] = array('path' => "user/". arg(1) ."/contact", 'title' => t('contact'),
- 'callback' => 'contact_mail_user', 'type' => MENU_LOCAL_TASK, 'weight' => 2);
+ $items[] = array('path' => "user/". arg(1) ."/contact",
+ 'title' => t('contact'),
+ 'callback' => 'contact_mail_user',
+ 'type' => MENU_LOCAL_TASK,
+ 'weight' => 2,
+ );
}
}
@@ -201,7 +205,7 @@ function contact_admin_edit_validate($form_id, $form_values) {
$recipients = explode(',', $form_values['recipients']);
foreach($recipients as $recipient) {
if (!valid_email_address(trim($recipient))) {
- form_set_error('recipients',t('%recipient is an invalid e-mail address.', array('%recipient' => theme('placeholder', $recipient))));
+ form_set_error('recipients', t('%recipient is an invalid e-mail address.', array('%recipient' => theme('placeholder', $recipient))));
}
}
}
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index 0e78ef6f9..f05f25419 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -95,8 +95,12 @@ function contact_menu($may_cache) {
}
else {
if (arg(0) == 'user' && is_numeric(arg(1))) {
- $items[] = array('path' => "user/". arg(1) ."/contact", 'title' => t('contact'),
- 'callback' => 'contact_mail_user', 'type' => MENU_LOCAL_TASK, 'weight' => 2);
+ $items[] = array('path' => "user/". arg(1) ."/contact",
+ 'title' => t('contact'),
+ 'callback' => 'contact_mail_user',
+ 'type' => MENU_LOCAL_TASK,
+ 'weight' => 2,
+ );
}
}
@@ -201,7 +205,7 @@ function contact_admin_edit_validate($form_id, $form_values) {
$recipients = explode(',', $form_values['recipients']);
foreach($recipients as $recipient) {
if (!valid_email_address(trim($recipient))) {
- form_set_error('recipients',t('%recipient is an invalid e-mail address.', array('%recipient' => theme('placeholder', $recipient))));
+ form_set_error('recipients', t('%recipient is an invalid e-mail address.', array('%recipient' => theme('placeholder', $recipient))));
}
}
}