Closed (fixed)
Project:
Flag
Version:
7.x-2.x-dev
Component:
Actions integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 15:17 UTC
Updated:
8 Dec 2010 at 04:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
mooffie commentedI'll assume this part of Flag wasn't yet ported to D7.
Comment #2
mooffie commented#956096: _trigger_get_hook_aids() does not exist in Drupal 7 was marked a dup of this issue.
Comment #3
mooffie commentedA patch for a D6 issue, #873464: Triggered actions don't work, should be applied to D7 as well, after porting.
Comment #4
mooffie commentedFixed a minor constant bug.
http://drupal.org/cvs?commit=454682
(But why does this function return a value? It isn't used, and it isn't in our D6.)
Comment #5
mooffie commentedThis is the patch I'm going to commit.
It has two parts:
- 'flag.actions.inc' was ported to D7.
- We had faulty code, in flag_flag(), that triggers our events. The patch from #873464: Triggered actions don't work was ported to D7.
Comment #6
mooffie commentedCommitted.
http://drupal.org/cvs?commit=455140
http://drupal.org/cvs?commit=455142
(Why two commits? I was inside the "includes" folder when I issued the first "cvs commit" command. I forgot CVS, unlike GIT, doesn't commit the changes above the currect folder.)
Comment #7
mooffie commentedNote that the event names are 'flag_flag' and 'flag_unflag'. I'd prefer them to be 'flag_flagged' and 'flag_unflagged', like I did for Rules. But I don't do this because, Nate, I see you prefer to use 'flag'/'unflag' for events, instead of the passive English verb.