sitevars
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Edit a key-value store, accessible from: Configuration > System > Site variables.
Requires 'administer site configuration' permission. Variable name converted to lowercase, using only [a-z], [0-9] and [_]. Key-value pairs stored in variable 'sitevars_array' as associative array.
Pass a name to sitevars_get() to retrieve one value; an array to retrieve several. Call it with no parameters to fetch your entire key-value store. Pass a string and TRUE to retrieve all variables whose name begins with a prefix.
While similar to Constants, that project is significantly different in its user interface, and is for Drupal 6. And, Strongarm only provides the ability to override existing variables, not create and use variables maintained by a site administrator.
This module will prove the most useful when developing custom themes.
Development sponsored by O3 World.
