Rules Condition Site Variable
Categories
Component ID
2096141
Component name
Rules Condition Site Variable
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
4212
Component created
Component changed
Component body
Currently a rule with a condition that relies on a site variable (i.e. variable_get('foo')) needs to have inline php code.
This module allows your rule to have a condition that explicitly references a variable by name, instead.
Installation
- Download and enable the module.
- In your rule, create a new condition, and select 'Site variable to check'.
- Set the 'The site variable you want to check' field to be the name of the variable you wish to check against. You do not need to surround the variable name with quotes.
- Set the 'The value that the site variable should have' field to be the value that the variable should be in order for the condition to return true.
Sponsor
This project has been sponsored by Savvis, Inc.
Get flexible, secure cloud servers, storage & private cloud hosting solutions that are up & running within minutes from Savvis, a CenturyLink Company.