You are here

function hook_flag_unflag in Flag 7.3

Act on an object being unflagged.

This is invoked after the flag count has been decreased, but before the flagging entity has been deleted.

Parameters

$flag: The flag object.

int $entity_id: The id of the entity the flag is on.

$account: The user account performing the action.

$flagging: The flagging entity.

2 string references to 'hook_flag_unflag'
FlagHookInvocationsTestCase::testHookInvocation in tests/flag.test
Test invocation of hooks and their data during flagging and unflagging.
flag_hook_test_flag_unflag in tests/flag_hook_test/flag_hook_test.module
Implements hook_flag_unflag().
3 functions implement hook_flag_unflag()

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

flag_actions_flag_unflag in ./flag_actions.module
Implements hook_flag_unflag(). Trigger actions if any are available.
flag_flag_unflag in ./flag.module
Implements hook_flag_unflag().
flag_hook_test_flag_unflag in tests/flag_hook_test/flag_hook_test.module
Implements hook_flag_unflag().
1 invocation of hook_flag_unflag()
flag_flag::flagging_delete in includes/flag/flag_flag.inc
Unflag an entity by deleting a Flagging.

File

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

Code

function hook_flag_unflag($flag, $entity_id, $account, $flagging) {
}