Coder suggested some simple formatting changes. I am doing the clean-up and will upload my patch here.
Here are the suggestions from coder:
File: @file block missing (Drupal Docs) [comment_docblock_file]
Line 439: The $message argument to watchdog() should NOT be enclosed within t(), so that it can be properly translated at display time. [i18n_9]
watchdog('mail', t('%name-from sent an e-mail at %form.', array('%name-from' => $form_state['values']['name'], '%form' => url($_GET['q'], array('absolute' => TRUE)))));Line 453: Arrays should be formatted with a space separating each element and assignment operator [style_array_spacing]
$message['body'][] = t('@name sent a message using the contact form at @url.', array('@name' => $params['name'], '@url' => $params['url']), array('langcode' =>$language->language));
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | email-coder_cleanup-2144857.patch | 1.42 KB | zhuber |
Comments
Comment #1
zhuber commentedHere is the patch, the email module now passes through coder 100%.
If this patch is committed, please attribute correctly. (http://www.bywombats.com/blog/09-06-2011/giving-credit-where-credit-due)
Here is my author info:
--author="zhuber <zhuber@1437276.no-reply.drupal.org>"Comment #2
hurtonypeter commentedreviewed
Comment #3
hurtonypeter commentedreviewed
Comment #4
mh86 commentedThanks for the patch, committed (incl. git attributions :))!