You are here

function party_entity_access in Party 8.2

Same name and namespace in other branches
  1. 7 party.module \party_entity_access()

Wrap around party_access() for the entity api 'access callback'.

Parameters

$op: The operation being performed.

$party: A party to check access for.

$account: (optional) The user to check access for. Omit to check for the global user.

Return value

Boolean; TRUE to grant access, FALSE to deny it.

See also

party_access

1 string reference to 'party_entity_access'
party_entity_info in ./party.module
Implements hook_entity_info().

File

./party.module, line 424
Provides a generic CRM party entity.

Code

function party_entity_access($op, $party = NULL, $account = NULL) {
  return party_access($op, $party, NULL, $account);
}