You are here

function template_preprocess_webform_confirmation in Webform 6.3

Same name and namespace in other branches
  1. 8.5 includes/webform.theme.template.inc \template_preprocess_webform_confirmation()
  2. 6.2 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 2539

Code

function template_preprocess_webform_confirmation(&$vars) {
  $confirmation = check_markup($vars['node']->webform['confirmation'], $vars['node']->webform['confirmation_format'], FALSE);

  // Strip out empty tags added by WYSIWYG editors if needed.
  $vars['confirmation_message'] = strlen(trim(strip_tags($confirmation))) ? $confirmation : '';
}