You are here

function theme_webform_confirmation in Webform 5.2

Same name and namespace in other branches
  1. 5 webform.module \theme_webform_confirmation()

Themable function for webform submission confirmation.

Parameters

$node: The webform node that has just been submitted.

1 theme call to theme_webform_confirmation()
_webform_confirmation in ./webform.module
Prints the confirmation message after a successful submission.

File

./webform.module, line 1805

Code

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);
}