Modules like block_query need to have their visibility respected as well - I suggest we add a hook to context respect to allow other modules to implement their context respect.
- if ($page_match && $role_match) {
+ $visibility = module_invoke_all('context_respect_block', $block);
+ if ($page_match && $role_match && !in_array(true,$visibility)) {
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | add-hook-to-all-3rd-party-visibilty-2077277-2.patch | 715 bytes | SolomonGifford |
Comments
Comment #1
SolomonGifford commentedHere's a patch for #1.
Comment #2
SolomonGifford commentedThe block_query module relies on this patch.
Comment #3
frob