webform-confirmation.tpl.php 888 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Customize confirmation screen after successful submission.
  5. *
  6. * This file may be renamed "webform-confirmation-[nid].tpl.php" to target a
  7. * specific webform e-mail on your site. Or you can leave it
  8. * "webform-confirmation.tpl.php" to affect all webform confirmations on your
  9. * site.
  10. *
  11. * Available variables:
  12. * - $node: The node object for this webform.
  13. * - $confirmation_message: The confirmation message input by the webform author.
  14. * - $sid: The unique submission ID of this submission.
  15. */
  16. ?>
  17. <div class="webform-confirmation">
  18. <?php if ($confirmation_message): ?>
  19. <?php print $confirmation_message ?>
  20. <?php else: ?>
  21. <p><?php print t('Thank you, your submission has been received.'); ?></p>
  22. <?php endif; ?>
  23. </div>
  24. <div class="links">
  25. <a href="<?php print url('node/'. $node->nid) ?>"><?php print t('Go back to the form') ?></a>
  26. </div>