function webform_get_submission in Webform 7.4
Same name and namespace in other branches
- 5.2 webform_submissions.inc \webform_get_submission()
- 6.3 includes/webform.submissions.inc \webform_get_submission()
- 6.2 webform_submissions.inc \webform_get_submission()
- 7.3 includes/webform.submissions.inc \webform_get_submission()
Fetch a specified submission for a webform node.
11 calls to webform_get_submission()
- template_preprocess_webform_confirmation in ./
webform.module - Prepare for theming of the webform submission confirmation.
- WebformSubmissionTestCase::webformSubmissionExecute in tests/
WebformSubmissionTestCase.test - Execute the submission test.
- webform_block_view in ./
webform.module - Implements hook_block_view().
- webform_client_form in ./
webform.module - Client form generation function.
- webform_client_form_submit in ./
webform.module - Submit handler for saving the form values and sending e-mails.
3 string references to 'webform_get_submission'
- WebformSubmissionTestCase::webformSubmissionExecute in tests/
WebformSubmissionTestCase.test - Execute the submission test.
- webform_client_form_submit in ./
webform.module - Submit handler for saving the form values and sending e-mails.
- webform_webform_submission_presave in ./
webform.module - Implements hook_webform_submission_presave().
File
- includes/
webform.submissions.inc, line 994 - Submission handling functions.
Code
function webform_get_submission($nid, $sid) {
$submissions =& drupal_static(__FUNCTION__, array());
// Load the submission if needed.
if (!isset($submissions[$sid])) {
$new_submissions = webform_get_submissions(array(
'nid' => $nid,
'sid' => $sid,
));
$submissions[$sid] = isset($new_submissions[$sid]) ? $new_submissions[$sid] : FALSE;
}
return $submissions[$sid];
}