Support a hook to provide notification about flagging to other modules
budda - February 7, 2007 - 18:39
| Project: | Flag content |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Invoke a hook on all modules that support it to notify when a node is flagged/unflagged.
This could be done through the standard hook_nodeapi() maybe?
The flag_content module could define a new $op = 'flag' and $op = 'unflag' to notify any 3rd party modules about the state change of the node.

#1
budda
This is a great idea.
If you have a patch, please go ahead and submit it.