How to add new action in flag ?

yaoweizhen - September 30, 2009 - 08:42
Project:Flag
Version:6.x-1.1
Component:Actions integration
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

quicksketch - October 1, 2009 - 04:31

There 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.

#2

quicksketch - October 28, 2009 - 02:06
Status:active» fixed

I updated the docs to include hook_flag() in http://drupal.org/node/305086.

#3

System Message - November 11, 2009 - 02:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.