You are here

function template_preprocess_webform_submission in Webform 7.3

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

Preprocess function for webform-submission.tpl.php.

File

includes/webform.submissions.inc, line 909
This file is loaded when handling submissions, either submitting new, editing, or viewing. It also contains all CRUD functions for submissions.

Code

function template_preprocess_webform_submission(&$vars) {
  $vars['node'] = $vars['renderable']['#node'];
  $vars['submission'] = $vars['renderable']['#submission'];
  $vars['email'] = $vars['renderable']['#email'];
  $vars['format'] = $vars['renderable']['#format'];
}