You are here

function party_hat_access in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_hat/party_hat.module \party_hat_access()

Entity 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_hat_access'
party_hat_entity_info in modules/party_hat/party_hat.module
Implements hook_entity_info().

File

modules/party_hat/party_hat.module, line 96
party_hat.module Provides an extensible access system for parties.

Code

function party_hat_access($op, $party = NULL, $account = NULL) {
  return user_access('administer hats');
}