You are here

function webform_rules_data_type_webform_data::get_identifier in Webform Rules 6

Gets the identifier of this data, which can be of every php data type - even an array. Implement it, if your data type is identifiable.

Overrides rules_data_type::get_identifier

File

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

Class

webform_rules_data_type_webform_data
Defines the webform_data type

Code

function get_identifier() {
  $submission =& $this
    ->get();
  if (is_array($submission)) {
    $submission = (object) $submission;
  }
  return $submission->sid;
}