Closed (fixed)
Project:
Context Rules
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 May 2011 at 12:03 UTC
Updated:
5 Aug 2012 at 18:21 UTC
Jump to comment: Most recent file
The missing piece? I have implemented this using the hook_context_page_reaction() hook and it seems to work. Patch to follow...
BTW - I found that rule conditions based on context didn't work for me. For example, if you create a triggered rule with the "User is going to view a page" event and add a "Node" context condition, the rule is fired before the context is set so the condition always returns false.
And thanks for the module!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | context_rules_events-1-1147918.patch | 1.8 KB | chaps2 |
Comments
Comment #1
chaps2 commentedComment #2
thomjjames commentedThanks for the patch i'll review it and add it in if all looks good!!
Cheers
Tom
Comment #3
alexweber commentedTested and works against current d6 stable Context and Rules modules. Applies mostly cleanly except for some whitespace at end of file warnings.
Good to go!
This solution has been forward-ported to the 7.x branch, here: #1696166: New Rules event to react when a context has been set
Comment #4
alexweber commentedThis has been comitted in 9a7586f. Thanks chaps2 for the patch and thomjjames for allowing me to co-maintain this module! :)