This is a bit of a tricky request, but what I want is the ability to tell Context Variable not to set specific variables if they are defined in settings.php.

It's somewhat of a workaround, but essentially the issue is that I have a temporary test environment that needs some variables set in a different way than the current triggering context sets them, but the environment is only temporary and doesn't warrant having a new context or modifications to the existing contexts.

Comments

Deciphered created an issue. See original summary.

deciphered’s picture

Status: Active » Needs work
StatusFileSize
new2.64 KB

Attached patch creates a new variable, context_variable_ignore, which is an array that can be populated with the name of the variables to be ignored during the Context reaction.

Variable needs to be exposed to the Variable module before being committed, as well as better documentation (maybe?) and tests.

deciphered’s picture

StatusFileSize
new712 bytes
new2.7 KB

Fixed issue with variable_get causing a recursive loop.