Closed (fixed)
Project:
Flag
Version:
6.x-1.1
Component:
Actions integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 08:42 UTC
Updated:
11 Nov 2009 at 02:10 UTC
No flag api document ?
I will send a privatemsg when flag/unflag node. I don't want to install rules and just finding a simplest way.
Comments
Comment #1
quicksketchThere is partial documentation at http://drupal.org/node/305086, but it doesn't include the hook that would be most helpful for you. You can respond to flaggings by implementing hook_flag(). Check out the flag_flag() function (flag's implementation of hook_flag) for an example usage.
Comment #2
quicksketchI updated the docs to include hook_flag() in http://drupal.org/node/305086.