Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently the condition in omega_extension_enabled()
basically just allows variables set in the settings.php
do disable already enabled theme settings.
This means I can disable Enable Development extension
by using $conf['omega_toggle_extension_development'] = FALSE;
in settings.php
but I can't enable it (No not even if I use $conf['omega_toggle_extension_development'] = TRUE;
) ;).
Proposed resolution
Change the condition in omega_extension_enabled()
as proposed in the attached patch.
Tests look positive so far.
Remaining tasks
Reviews needed
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | omega-allow-enabling-extensions-by-variable-override-2279669-2.patch | 1005 bytes | das-peter |
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedCan we make that a little simpler? Like so:
Comment #2
das-peter CreditAttribution: das-peter commentedAdjusted patch.
Comment #3
fubhy CreditAttribution: fubhy commented