You are here

function party_rules_detach_entity in Party 8.2

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

Implement the detach entity rule

File

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

Code

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