The two rules actions 'Send a message' and 'Send a message to a role' both create a new thread.

I think it would be useful if the actions provided the newly created thread_id as a variable for further processing by rules actions.

#1 privatemsg-1387740-1.patch2.03 KBarnested
PASSED: [[SimpleTest]]: [MySQL] 4,881 pass(es). View


arnested’s picture

Status: Active » Needs review
2.03 KB
PASSED: [[SimpleTest]]: [MySQL] 4,881 pass(es). View


ptmkenny’s picture

#1: privatemsg-1387740-1.patch queued for re-testing.

ptmkenny’s picture

Status: Needs review » Reviewed & tested by the community

I've confirmed that the thread ID variable is properly provided and can be used in Rules actions with the latest dev version (2013-Jun-08). Though the thread ID variable is not always necessary, having it available could be very helpful in some use cases.

Berdir’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed and pushed to 7.x-2.x and 7.x-1.x, does not apply to 6.x. Also fixed a comment that did not follow the coding standard.

@ptmkenny: Remember to also check coding standards (the parts you know) of patches before you rtbc them.

ptmkenny’s picture

Sorry I missed that comment. I will be more aware of this in the future.

ptmkenny’s picture

Issue summary: View changes

Patch supplied

oadaeh’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.