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

CommentFileSizeAuthor
#2 api-addition-1073664-3.patch1.72 KBthomjjames

Comments

thomjjames’s picture

Status: Active » Closed (fixed)

Just 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

thomjjames’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new1.72 KB

Here's a patch against 6.x-1.x-dev if 6.x-2 version never makes it to the light of day.

Cheers
Tom

sirkitree’s picture

Status: Needs review » Fixed

Thanks! 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.

sirkitree’s picture

Status: Fixed » Patch (to be ported)

Let's make sure this get's ported to 7

sirkitree’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -rules, -API addition

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