[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

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

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


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7