[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/webform/templates/ -> webform-mail.tpl.php (source)

   1  <?php
   2  
   3  /**
   4   * @file
   5   * Customize the e-mails sent by Webform after successful submission.
   6   *
   7   * This file may be renamed "webform-mail-[nid].tpl.php" to target a
   8   * specific webform e-mail on your site. Or you can leave it
   9   * "webform-mail.tpl.php" to affect all webform e-mails on your site.
  10   *
  11   * Available variables:
  12   * - $node: The node object for this webform.
  13   * - $submission: The webform submission.
  14   * - $email: The entire e-mail configuration settings.
  15   * - $user: The current user submitting the form.
  16   * - $ip_address: The IP address of the user submitting the form.
  17   *
  18   * The $email['email'] variable can be used to send different e-mails to different users
  19   * when using the "default" e-mail template.
  20   */
  21  ?>
  22  <?php print ($email['html'] ? '<p>' : '') . t('Submitted on %date'). ($email['html'] ? '</p>' : ''); ?>
  23  
  24  <?php if ($user->uid): ?>
  25  <?php print ($email['html'] ? '<p>' : '') . t('Submitted by user: %username') . ($email['html'] ? '</p>' : ''); ?>
  26  <?php else: ?>
  27  <?php print ($email['html'] ? '<p>' : '') . t('Submitted by anonymous user: [%ip_address]') . ($email['html'] ? '</p>' : ''); ?>
  28  <?php endif; ?>
  29  
  30  <?php print ($email['html'] ? '<p>' : '') . t('Submitted values are') . ':' . ($email['html'] ? '</p>' : ''); ?>
  31  
  32  %email_values
  33  
  34  <?php print ($email['html'] ? '<p>' : '') . t('The results of this submission may be viewed at:') . ($email['html'] ? '</p>' : '') ?>
  35  
  36  <?php print ($email['html'] ? '<p>' : ''); ?>%submission_url<?php print ($email['html'] ? '</p>' : ''); ?>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7