Rules Integration

Parkes Design - September 9, 2009 - 03:20
Project:Node Reference URL Widget
Version:6.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Issue tags:rules integration
Description

Hi Brilliant module you've built here. Is there any chance that you will be integrating this with rules? The reason I ask is that rules has released this cool function where you can setup rules while the form is being built and it would be good to have an action where you get Node Reference from the URL.

Thoughts?

Thanks,

Daimian

#1

B-Prod - October 1, 2009 - 15:46
Status:active» needs review

Here is a patch which creates an action to populate a nodereference URL field with rules. This patch solves a problem which is not exactly the one described above, because it does not handle the filling of the field by searching in the URL.

Actually this patch allow to use tokens, fixed nid or PHP code to fill the nodereference URL field.

Filling the nodereference field by searching in the URL will work in a very few cases: the rule needs to be called from very specific pages URLs. That's why I rather implements a standard way to use rules, which works in standard cases.

AttachmentSize
nodereference_url_rules.patch 9.72 KB

#2

B-Prod - October 5, 2009 - 11:10

Here is an updated patch. There were an omission in the last file: I forgot to modify the #value key by #default_value.

AttachmentSize
nodereference_url_rules.patch 9.79 KB

#3

Parkes Design - October 15, 2009 - 14:04

Hi B-Prod, Thanks for the patch. I'll give it a go and report back :-)

 
 

Drupal is a registered trademark of Dries Buytaert.