You are here

function theme_webform_mail_headers in Webform 7.4

Same name and namespace in other branches
  1. 5.2 webform.module \theme_webform_mail_headers()
  2. 6.3 webform.module \theme_webform_mail_headers()
  3. 6.2 webform.module \theme_webform_mail_headers()
  4. 7.3 webform.module \theme_webform_mail_headers()

Theme the headers when sending an email from webform.

Parameters

array $variables: The variables array.

Return value

array An array of headers to be used when sending a webform email. If headers for "From", "To", or "Subject" are set, they will take precedence over the values set in the webform configuration.

File

./webform.module, line 3985
This module provides a simple way to create forms and questionnaires.

Code

function theme_webform_mail_headers(array $variables) {
  $headers = array(
    'X-Mailer' => 'Drupal Webform' . (ini_get('expose_php') ? ' (PHP/' . phpversion() . ')' : ''),
  );
  return $headers;
}