All in one place: add a variable, filter by prefix, delete/modify variables

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.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Administration tools
  • Created by kris-o3 on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases