Download & Extend

Context: Variable

Tutorials:
btopro's walkthrough
How ELMS uses this module
University of Virginia video tutorial to solve theme issue

Map values as database variable|value. This will also accept variable|index:value in the case of arrays that are stored in the drupal variable table. %theme can be used to replace it with the current theme in use, accounting for og_theme

The use-case for building this was Spaces can override global settings based on Strongarm. This module allows your contexts to dynamically react to minor global value overrides. An example implementation is:

theme_%theme_settings|toggle_primary_links:0

This says "look at the active theme settings variable, then see if primary links are told not to render". In this instance, the context will match and can display blocks or whatever it wants to. In ELMS, this variable match allows you to toggle whether links display in the theme's primary links region or if a block should be rendered on the page (hence the if primary links are set to 0 do this).

Project created as part of the Penn State University ELMS Initiative.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.0-beta3 tar.gz (9.17 KB) | zip (10.48 KB) 2012-Jan-29 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (9.17 KB) | zip (10.51 KB) 2012-Mar-01 Notes
6.x-1.x-dev tar.gz (9.17 KB) | zip (10.48 KB) 2012-Mar-01 Notes

Project Information


Maintainers for Context: Variable

  • btopro - 4 commits
    last: 12 weeks ago, first: 24 weeks ago

Issues for Context: Variable

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports