You are here

function skinr_context_context_default_contexts in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_context/skinr_context.module \skinr_context_context_default_contexts()

Implements hook_context_default_contexts().

File

skinr_context/skinr_context.module, line 586
Provides Skinr integration with Context.

Code

function skinr_context_context_default_contexts() {
  $contexts = array();
  foreach (skinr_context_group_load_multiple(FALSE) as $group) {
    $context = skinr_context_group_to_context($group);
    $context->disabled = FALSE;
    $context->api_version = 3;
    $contexts[$context->name] = $context;
  }
  return $contexts;
}