You are here

function context_set in Context 5

Same name and namespace in other branches
  1. 6.3 context.module \context_set()
  2. 6 context.module \context_set()
  3. 6.2 context.module \context_set()
  4. 7.3 context.module \context_set()

Sets a context by namespace + attribute.

2 calls to context_set()
ContextGetTest::testContextGet in tests/context.test
context_ui_set in context_ui/context_ui.module
Sets a namespace-attribute-value context that has been associated with the provided item.

File

./context.module, line 88

Code

function context_set($namespace, $attribute = null, $value = null) {
  return context_context(CONTEXT_SET, $namespace, $attribute, $value);
}