You are here

function hook_party_data_set_attach_DATA_SET_NAME in Party 7

Act when an entity is attached to a party on a specific data set.

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()

hook_party_data_set_attach()

File

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

Code

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

  // No example.
}