You are here

function hook_flag_reset in Flag 6.2

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

Act when a flag is reset.

Parameters

$flag: The flag object.

$entity_id: The entity ID on which all flaggings are to be removed. May be NULL, in which case all of this flag's entities are to be unflagged.

$rows: Database rows from the {flagging} table.

See also

flag_reset_flag()

1 invocation of hook_flag_reset()
flag_reset_flag in ./flag.module
Remove all flagged content from a flag.

File

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

Code

function hook_flag_reset($flag, $entity_id, $rows) {
}