Contributions API

theme_webform_confirmation

Definition

theme_webform_confirmation($node, $sid)
contributions/webform/webform.module, line 1686

Description

Themable function for webform submission confirmation.

Parameters

$node The webform node that has just been submitted.

Code

<?php
function theme_webform_confirmation($node, $sid) {

  if (empty($node->webform['confirmation'])) {
    drupal_set_message(t('Thank you, your submission has been received.'));
    drupal_goto('node/'. $node->nid);
  }

  $node->body = check_markup($node->webform['confirmation'], $node->format, FALSE);
  $node->links['webform_back'] = array(
    'href' => 'node/'. $node->nid,
    'title' => t('Go back to the form'),
  );
  return theme('node', $node, FALSE, TRUE);
}
?>