You are here

function context_get in Context 5

Same name and namespace in other branches
  1. 6.3 context.module \context_get()
  2. 6 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.

6 calls to context_get()
ContextGetTest::testContextGet in tests/context.test
ContextUiTest::testCreateContext in context_ui/tests/context_ui.test
context_ui_block in context_ui/context_ui.module
Implementation of hook_block().
context_ui_block_list in context_ui/context_ui.module
An alternative version of block_list() that provides any context_ui enabled blocks.
context_ui_set in context_ui/context_ui.module
Sets a namespace-attribute-value context that has been associated with the provided item.

... See full list

File

./context.module, line 95

Code

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