function party_entity_query_alter in Party 7
Implements hook_entity_query_alter().
File
- ./
party.module, line 1499 - Provides a generic CRM party entity.
Code
function party_entity_query_alter($query) {
if (isset($query->entityConditions['entity_type']['value'])) {
if ($query->entityConditions['entity_type']['value'] == 'party') {
$query
->addTag('party_access');
}
}
}