You are here

function hook_flag_access_multiple in Flag 7.3

Same name and namespace in other branches
  1. 6.2 flag.api.php \hook_flag_access_multiple()
  2. 7.2 flag.api.php \hook_flag_access_multiple()

Allow modules to allow or deny access to flagging for multiple entities.

Called when preparing a View or list of multiple flaggable entities. For flag access checks for individual entities, see hook_flag_access().

Parameters

flag_flag $flag: The flag object.

array $entity_ids: An array of object ids to check access.

$account: The user on whose behalf to test the flagging action.

Return value

array An array whose keys are the object IDs and values are booleans indicating access: TRUE to grant access, FALSE to deny it, and NULL to leave the core access unchanged. If the implementation does not wish to override any access, an empty array may be returned.

See also

hook_flag_access()

flag_flag:access_multiple()

1 function implements hook_flag_access_multiple()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

flag_flag_access_multiple in ./flag.module
Implements hook_flag_access_multiple().
1 invocation of hook_flag_access_multiple()
flag_flag::access_multiple in includes/flag/flag_flag.inc
Determine access to multiple objects.

File

./flag.api.php, line 257
Hooks provided by the Flag module.

Code

function hook_flag_access_multiple($flag, $entity_ids, $account) {
}