function webform_download_sids in Webform 7.4
Same name and namespace in other branches
- 6.3 includes/webform.report.inc \webform_download_sids()
- 7.3 includes/webform.report.inc \webform_download_sids()
Given a set of range options, retrieve a set of SIDs for a webform node.
Parameters
int $nid: The node id of the webform.
array $range_options: Associate array of range options.
int $uid: The user id of the user whose last download information should be used, or the current user if NULL. This is unrelated to which user submitted the submissions.
Return value
array An array of submission IDs.
1 call to webform_download_sids()
- WebformSubmissionTestCase::testWebformSubmissionDownload in tests/
WebformSubmissionTestCase.test - Test that the correct submissions are offered for download.
1 string reference to 'webform_download_sids'
- webform_download_sids_query in includes/
webform.report.inc - Given a set of range options, return an unexecuted select query.
File
- includes/
webform.report.inc, line 1940 - This file includes helper functions for creating reports for webform.module.
Code
function webform_download_sids($nid, array $range_options, $uid = NULL) {
return webform_download_sids_query($nid, $range_options, $uid)
->fields('ws', array(
'sid',
))
->execute()
->fetchCol();
}