You are here

function _webform_confirmation in Webform 5

Same name and namespace in other branches
  1. 5.2 webform.module \_webform_confirmation()
  2. 6.3 webform.module \_webform_confirmation()
  3. 6.2 webform.module \_webform_confirmation()
  4. 7.4 webform.module \_webform_confirmation()
  5. 7.3 webform.module \_webform_confirmation()

Prints the confirmation message after a successful submission.

1 string reference to '_webform_confirmation'
webform_menu in ./webform.module
Implementation of hook_menu().

File

./webform.module, line 1677

Code

function _webform_confirmation($nid) {
  if ($node = node_load($nid)) {
    if (node_access('view', $node)) {
      drupal_set_title(check_plain($node->title));
      return theme('webform_confirmation', $node);
    }
    else {
      drupal_access_denied();
    }
  }
  else {
    drupal_set_message(t("No node with the id '%nid' could be found", array(
      '%nid' => $nid,
    )));
    drupal_not_found();
  }
}