You are here

function spaces_context_active_contexts_alter in Spaces 6

Same name and namespace in other branches
  1. 6.2 spaces.module \spaces_context_active_contexts_alter()

Implementation of hook_context_active_contexts_alter().

File

./spaces.module, line 893

Code

function spaces_context_active_contexts_alter(&$contexts) {
  $space = spaces_get_space();
  foreach ($contexts as $context) {
    if ($context->block && $context->attribute == 'feature') {
      $feature = $context->value;
      space_customizer_block::customize($space, $feature, $context->block);
    }
  }
}