Commit 25dd1a4e authored by zhuber's avatar zhuber Committed by Matthias Hutterer
Browse files

Issue #2144857 by zhuber: Fixed coder cleanup suggestions (minor formatting).

parent c8623447
<?php
/**
* @file
* Module file for the email module, which creates a email address field.
*/
/**
* Implements hook_field_info().
......@@ -436,7 +440,7 @@ function email_mail_page_form_submit($form, &$form_state) {
// Log the operation:
flood_register_event('email');
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)))));
watchdog('mail', '%name-from sent an e-mail at %form.', array('%name-from' => $form_state['values']['name'], '%form' => url($_GET['q'], array('absolute' => TRUE))));
drupal_set_message(t('Your message has been sent.'));
$form_state['redirect'] = $path;
......@@ -450,7 +454,7 @@ function email_mail($key, &$message, $params) {
switch ($key) {
case 'contact':
// Compose the body:
$message['body'][] = t('@name sent a message using the contact form at @url.', array('@name' => $params['name'], '@url' => $params['url']), array('langcode' =>$language->language));
$message['body'][] = t('@name sent a message using the contact form at @url.', array('@name' => $params['name'], '@url' => $params['url']), array('langcode' => $language->language));
$message['body'][] = $params['message'];
$message['subject'] = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment