function _webform_confirmation in Webform 5
Same name and namespace in other branches
- 5.2 webform.module \_webform_confirmation()
- 6.3 webform.module \_webform_confirmation()
- 6.2 webform.module \_webform_confirmation()
- 7.4 webform.module \_webform_confirmation()
- 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();
}
}