function webform_results_table in Webform 5.2
Same name and namespace in other branches
- 6.3 includes/webform.report.inc \webform_results_table()
- 6.2 webform_report.inc \webform_results_table()
- 7.4 includes/webform.report.inc \webform_results_table()
- 7.3 includes/webform.report.inc \webform_results_table()
Create a table containing all submitted values for a webform node.
1 call to webform_results_table()
- webform_results in ./
webform.module - Menu callback for all content under admin/content/webform.
File
- ./
webform_report.inc, line 161 - This file includes helper functions for creating reports for webform.module
Code
function webform_results_table($node, $pager_count = 0) {
// Load Components.
webform_load_components();
if (isset($_GET['results']) && is_numeric($_GET['results'])) {
$pager_count = $_GET['results'];
}
// Get all the submissions for the node.
$header = theme('webform_results_table_header', $node);
$submissions = webform_get_submissions($node->nid, $header, NULL, $pager_count);
$total_count = webform_get_submission_count($node->nid);
$output = theme('webform_results_table', $node, $node->webform['components'], $submissions, $total_count, $pager_count);
if ($pager_count) {
$output .= theme('pager', NULL, $pager_count, 0);
}
return $output;
}