Hi,
Working on a module to provide basic Rules module integration for Flag Friend (http://drupal.org/sandbox/thomjjames/1073654). It's working pretty well but it would be great if the module_invoke_all('flag_friend') calls included the $flag object & $status variable too.
My main reason for requesting this is so the Flag Friend Rules module can grab the user messages (mainly on "request" & "approve" calls) from the flag_friend_message database table and pass it as an argument to rules if it's available. Please correct me if there is already a way to do this :)
Patch to follow
Thanks
Tom
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | api-addition-1073664-3.patch | 1.72 KB | thomjjames |
Comments
Comment #1
thomjjames commentedJust grabbed the 6.x-2.x version and the $flag object is indeed included in the API calls & $status isn't strictly needed.
Will provide patch against 6.x-1.x version instead.
Tom
Comment #2
thomjjames commentedHere's a patch against 6.x-1.x-dev if 6.x-2 version never makes it to the light of day.
Cheers
Tom
Comment #3
sirkitree commentedThanks! Looks fine, committed.
Try to use git diff --relative --no-prefix in your patches so they apply just a little cleaner. With the a/ and b/ format, anyone applying the patch has an extra step of specifying the file.
Comment #4
sirkitree commentedLet's make sure this get's ported to 7
Comment #5
sirkitree commentedcommitted to D7: http://drupalcode.org/project/flag_friend.git/commitdiff/b47973c2c42c188...