Active
Project:
Spaces
Version:
6.x-3.0-rc2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2010 at 19:49 UTC
Updated:
17 Feb 2011 at 21:50 UTC
Hi,
I've created a space using a custom type. Pretty simple, it just overrides the Drupal variables "site_frontpage" and "theme_default" when someone is inside of the space (using a PURL prefix). Lovely!
Now, when inside of this space, I'd like to disable certain Contexts, and enable other Contexts. For example, when in the space, display blockB instead of blockA, and set the breadcrumb to something different. Can this be done with Spaces out-of-the-box? If not, what could I do from my module to achieve this?
Thanks!
Comments
Comment #1
Grayside commentedI think you are looking for hook_context_load_alter():
Note that conditions cannot be altered here, but you can add, alter, and remove Reactions. Not sure if you can use this to drop the entire Context.
Comment #2
ryan_courtnage commentedThanks, this is what I was looking for.