public function PartyUserDataSet::hook_party_delete in Party 7
Same name and namespace in other branches
- 8.2 modules/party_user/includes/party_user.data.inc \PartyUserDataSet::hook_party_delete()
Act on party delete.
Overrides PartyDefaultDataSet::hook_party_delete
File
- modules/
party_user/ includes/ party_user.data.inc, line 23 - Provides the class for managing user data sets.
Class
- PartyUserDataSet
- Controller class for CRM integration.
Code
public function hook_party_delete() {
foreach ($this
->getEntities() as $user) {
$this
->detachEntity($user);
$method = variable_get('party_user_party_delete_action', 'disallow');
if ($method != 'disallow') {
user_cancel(array(), $user->uid, $method);
}
}
$this
->clear();
}