You are here

function template_preprocess_webform_confirmation in Webform 6.2

Same name and namespace in other branches
  1. 8.5 includes/webform.theme.template.inc \template_preprocess_webform_confirmation()
  2. 6.3 webform.module \template_preprocess_webform_confirmation()
  3. 7.4 webform.module \template_preprocess_webform_confirmation()
  4. 7.3 webform.module \template_preprocess_webform_confirmation()
  5. 6.x includes/webform.theme.template.inc \template_preprocess_webform_confirmation()

Prepare for theming of the webform submission confirmation.

File

./webform.module, line 2022

Code

function template_preprocess_webform_confirmation(&$vars) {
  if (empty($vars['node']->webform['confirmation'])) {
    drupal_set_message(t('Thank you, your submission has been received.'));
    drupal_goto('node/' . $vars['node']->nid);
  }
  $vars['confirmation_message'] = check_markup($vars['node']->webform['confirmation'], $vars['node']->format, FALSE);
}