function hook_flag_reset in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.api.php \hook_flag_reset()
- 7.2 flag.api.php \hook_flag_reset()
Act when a flag is reset.
Parameters
flag_flag $flag: The flag object.
int $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
1 invocation of hook_flag_reset()
- flag_reset_flag in ./
flag.module - Remove all flagged entities from a flag.
File
- ./
flag.api.php, line 360 - Hooks provided by the Flag module.
Code
function hook_flag_reset($flag, $entity_id, $rows) {
}