You are here

function template_preprocess_webform_results_submissions in Webform 7.4

Same name and namespace in other branches
  1. 6.3 includes/webform.report.inc \template_preprocess_webform_results_submissions()
  2. 7.3 includes/webform.report.inc \template_preprocess_webform_results_submissions()

Preprocess function for webform-results-submissions.tpl.php.

File

includes/webform.report.inc, line 205
This file includes helper functions for creating reports for webform.module.

Code

function template_preprocess_webform_results_submissions(&$vars) {
  $vars['node'] = $vars['element']['#node'];
  $vars['submissions'] = $vars['element']['#submissions'];
  $vars['table'] = $vars['element']['table'];
  $vars['total_count'] = $vars['element']['#total_count'];
  $vars['pager_count'] = $vars['element']['#pager_count'];
  $vars['is_submissions'] = arg(2) == 'submissions' ? 1 : 0;
  unset($vars['element']);
}