You are here

function hook_flag in Flag 7.2

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

Act on a flagging.

Parameters

$op: The operation being performed: one of 'flag' or 'unflag'.

$flag: The flag object.

$content_id: The id of the content (aka entity) the flag is on.

$account: The user account performing the action.

$fcid: The id of the flagging in the {flag_content} table.

14 functions implement hook_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 in ./flag_actions.module
Implements hook_flag(). Trigger actions if any are available.
flag_action_validate_flag in includes/flag.actions.inc
Generic validation handler for validating Flag action configuration.
flag_flag in ./flag.module
Implements hook_flag(). Trigger actions if any are available.
flag_flag::find_default_flag in ./flag.inc
Finds the "default flag" corresponding to this flag.
flag_flag::_flag in ./flag.inc
A low-level method to flag content.

... See full list

1 invocation of hook_flag()
flag_flag::flag in ./flag.inc
Flags, or unflags, an item.

File

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

Code

function hook_flag($op, $flag, $content_id, $account, $fcid) {
}