You are here

public static function WebformRulesSubmissionWrapper::webformSubmissionValues in Webform Rules 7

File

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

Class

WebformRulesSubmissionWrapper
Provide entity-like access to webform submission data.

Code

public static function webformSubmissionValues($wrapper, $property_info) {
  $submission = $wrapper
    ->value();
  $properties = $property_info['properties'];
  if (!empty($submission->nid)) {
    $properties += _webform_rules_component_property_info($submission->nid);
  }
  return array(
    'properties' => $properties,
  );
}