context using theme condition is not recognized as active

Created on 22 December 2012, over 12 years ago
Updated 4 September 2025, 18 days ago

Scenario 1:

  • CONTEXT_A is active for THEME_1.
  • CONTEXT_B is active if CONTEXT_A is not active.

CONTEXT_B will always show, because CONTEXT_A is never recognized as active by context. If THEME_1 is active both will show.

Scenario 2:

  • CONTEXT_A is active for THEME_1.
  • CONTEXT_B is active if CONTEXT_A is active.

CONTEXT_B will never show, because CONTEXT_A is never recognized as active by context. If THEME_1 is selected only CONTEXT_A will show.

I don't know if this is a special problem only in our drupal setup but this fixed it for us:
line 54 context_condition_theme.module
function context_condition_theme_context_page_condition() {
changed to:
function context_condition_theme_init() {

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇫Afghanistan e_log

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024