function context_enabled_contexts in Context 6.3
Same name and namespace in other branches
- 6 context.module \context_enabled_contexts()
- 6.2 context.module \context_enabled_contexts()
- 7.3 context.module \context_enabled_contexts()
Wrapper around context_load() that only returns enabled contexts.
2 calls to context_enabled_contexts()
- context_condition_map in ./
context.module - Loads an associative array of conditions => context identifiers to allow contexts to be set by different conditions.
- context_update_6002 in ./
context.install - Update script for API change in path condition.
File
- ./
context.module, line 328
Code
function context_enabled_contexts($reset = FALSE) {
$enabled = array();
foreach (context_load(NULL, $reset) as $context) {
if (empty($context->disabled)) {
$enabled[$context->name] = $context;
}
}
return $enabled;
}