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
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.
#2
Here is an updated patch. There were an omission in the last file: I forgot to modify the #value key by #default_value.
#3
Hi B-Prod, Thanks for the patch. I'll give it a go and report back :-)