function template_preprocess_webform_confirmation in Webform 7.3
Same name and namespace in other branches
- 8.5 includes/webform.theme.template.inc \template_preprocess_webform_confirmation()
- 6.3 webform.module \template_preprocess_webform_confirmation()
- 6.2 webform.module \template_preprocess_webform_confirmation()
- 7.4 webform.module \template_preprocess_webform_confirmation()
- 6.x includes/webform.theme.template.inc \template_preprocess_webform_confirmation()
Prepare for theming of the webform submission confirmation.
File
- ./
webform.module, line 2697 - This module provides a simple way to create forms and questionnaires.
Code
function template_preprocess_webform_confirmation(&$vars) {
$confirmation = check_markup($vars['node']->webform['confirmation'], $vars['node']->webform['confirmation_format'], '', TRUE);
// Strip out empty tags added by WYSIWYG editors if needed.
$vars['confirmation_message'] = strlen(trim(strip_tags($confirmation))) ? $confirmation : '';
}