You are here

function context_get in Context 6

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

Retrieves a context by namespace + (optional) attribute.

3 calls to context_get()
ContextUnitTestCase::testContextGet in tests/context.test
context_active_contexts in ./context.module
Loads any active contexts with associated reactions. This should be run at a late stage of the page load to ensure that relevant contexts have been set.
context_ui_block in context_ui/context_ui.module
Implementation of hook_block().

File

./context.module, line 106

Code

function context_get($namespace = null, $attribute = null) {
  return context_context(CONTEXT_GET, $namespace, $attribute, null);
}