I found that by simply changing the .info file this module seemed to work for D7. Enclosed is the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | context_respect_d7.patch | 27.67 KB | ngmaloney |
| context_respect_d7.patch | 473 bytes | ngmaloney |
I found that by simply changing the .info file this module seemed to work for D7. Enclosed is the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | context_respect_d7.patch | 27.67 KB | ngmaloney |
| context_respect_d7.patch | 473 bytes | ngmaloney |
Comments
Comment #1
ngmaloney commentedI stand corrected. That patch does not work (when saving context). Working on another.
Comment #2
ngmaloney commentedAttached is a working D7 port. I basically copied the new D7 context_reaction_block.inc from context over to this module and refactored the code that checks path and role.
Comment #3
kevinwal commentedThanks ng, reviewing and testing patch.
Comment #4
ngmaloney commentedI found another bug with my D7 port. Rather than continually submitting patches I put it on github. https://github.com/ngmaloney/context_respect
Comment #5
kevinwal commentedOk, those changes were added to the 7.x dev version here as well.
Comment #6
ngmaloney commentedExcellent. I added in some code so that each block can be overridden via setting a persistant variable. This is useful if you wish to have context respect handle a core role based setting but not a core page based setting (or vice versa). The new code checks for either 2 variables:
- context_respect_override_role which contains array('$block_id' =>'$value')
- context_respect_override_page which contains array('$block_id' =>'$value')
ex: Lets say you wanted context to respect role based settings but ignore page based settings. Somewhere in code you would set the following:
I didn't provide an interface yet but these variables can be set via settings.php, strongarm/features, or a module.install.