function hook_flag_flag in Flag 7.3
Act on an object being flagged.
Parameters
flag_flag $flag: The flag object.
int $entity_id: The id of the entity the flag is on.
$account: The user account performing the action.
$flagging_id: The flagging entity.
2 string references to 'hook_flag_flag'
- FlagHookInvocationsTestCase::testHookInvocation in tests/
flag.test - Test invocation of hooks and their data during flagging and unflagging.
- flag_hook_test_flag_flag in tests/
flag_hook_test/ flag_hook_test.module - Implements hook_flag_flag().
3 functions implement hook_flag_flag()
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_flag in ./
flag_actions.module - Implements hook_flag_flag(). Trigger actions if any are available.
- flag_flag_flag in ./
flag.module - Implements hook_flag_flag().
- flag_hook_test_flag_flag in tests/
flag_hook_test/ flag_hook_test.module - Implements hook_flag_flag().
1 invocation of hook_flag_flag()
- flag_flag::flagging_insert in includes/
flag/ flag_flag.inc - Create a new Flagging to flag an entity.
File
- ./
flag.api.php, line 145 - Hooks provided by the Flag module.
Code
function hook_flag_flag($flag, $entity_id, $account, $flagging) {
}