protected function WebformRulesSubmissionWrapper::load in Webform Rules 7
Load a data object given an identifier.
Return value
The loaded data object, or FALSE if loading failed.
Overrides RulesIdentifiableDataWrapper::load
File
- ./
webform_rules.rules.inc, line 516 - Functions for rules integration.
Class
- WebformRulesSubmissionWrapper
- Provide entity-like access to webform submission data.
Code
protected function load($data) {
if (is_array($data)) {
$sid = $data['sid'];
}
else {
$sid = $data;
}
module_load_include('inc', 'webform', 'includes/webform.submissions');
return webform_get_submissions(array(
'sid' => $sid,
));
}