You are here

function webform_rules_data_type_webform_data::load in Webform Rules 6

Loads the data identified with an identifier as returned by get_identifier(). Just return the data or FALSE if loading the data failed.

Implement it, if your data type is identifiable.

Overrides rules_data_type::load

1 call to webform_rules_data_type_webform_data::load()
webform_rules_data_type_webform_data::save in ./webform_rules.rules.inc
Makes changes to the data permanent. Implement it, if your data type is savable.

File

./webform_rules.rules.inc, line 185
Functions for rules integration.

Class

webform_rules_data_type_webform_data
Defines the webform_data type

Code

function load($sid) {
  module_load_include('inc', 'webform', 'includes/webform.submissions');
  return webform_get_submissions(array(
    'sid' => $sid,
  ));
}