Closed (fixed)
Project:
Context
Version:
6.x-3.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 16:08 UTC
Updated:
26 Jan 2018 at 15:37 UTC
Jump to comment: Most recent
It would be really nice to be able to remove a single reaction from a context, say, a block, in a preprocess function.
Basically, mimicking block visibility but within the framework of context.
Is this possible, or must one set up multiple contexts?
If this has been already answered/documented, apologies. I've looked in vain.
Comments
Comment #1
glass.dimly commentedFound my answer in the API.
Comment #2
tonytosta commentedThanks for posting your solution! :)
Comment #3
doublejosh commentedWhile this is cool, it also seems like a horrible idea.
It's been 6 months and I imagine by now someone has spent hours fighting this context, reverting the feature, and pulling their hair out trying to figure out why this reaction isn't acting like it's suppose to :)
Comment #4
elusivemind commentedThe best way to do this is in an update hook. As an example - in one hook I had to removed a path that contained a mis-capitalized word and also remove a reaction that was applicable to the context. I did so with the following: