You are here

function context_get in Context 7.3

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

Retrieves a context by namespace + (optional) attribute.

4 calls to context_get()
ContextUnitTest::test 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_view in context_ui/context_ui.module
Implementation of hook_block_view().
context_ui_page_build in context_ui/context_ui.module
Implementation of hook_page_build(). Turn off the context_ui functionality if we move to a different page

File

./context.module, line 102

Code

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