You are here

function party_rules_attach_entity in Party 8.2

Same name and namespace in other branches
  1. 7 party.rules.inc \party_rules_attach_entity()

Implement the attach entity rule.

@todo: Get party loading as a Party object not as stdClass

1 string reference to 'party_rules_attach_entity'
party_rules_action_info in ./party.rules.inc
Implements hook_rules_action_info()

File

./party.rules.inc, line 125
Rules integration for party.

Code

function party_rules_attach_entity($party, $wrapper, $data_set_name, $settings, $state, $element) {
  $entity = $wrapper
    ->value();
  party_attach_entity($party, $entity, $data_set_name);
}