You are here

function hook_party_data_set_attach in Party 7

Act when an entity is attached to a party.

Parameters

PartyDefaultDataSet $controller: The data set controller that the entity has been attached to.

Object $entity: The entity that has been attached to the party.

int $delta: The $delta the attached entity has been added at.

string $method: The $method used. Can be one of:

  • 'append': the entity will be added to the end of the list.
  • 'prepend': the entity will be added at the front of the list.
  • 'insert': the entity will be inserted at $delta.

bool $reattach: Whether this entity was set to be reattached.

See also

PartyDefaultDataSet::attachEntity()

1 function implements hook_party_data_set_attach()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

party_log_party_data_set_attach in modules/party_log/party_log.party.inc
Implements hook_party_data_set_attach().

File

./party.api.php, line 279
Hooks provided by the Party module.

Code

function hook_party_data_set_attach($controller, $entity, $delta, $method, $reattach) {

  // No example.
}