You are here

function spaces_context_active_contexts_alter in Spaces 6.2

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

Implementation of hook_context_active_contexts_alter().

File

./spaces.module, line 524

Code

function spaces_context_active_contexts_alter(&$contexts) {
  $space = spaces_get_space();
  foreach ($contexts as $identifier => $context) {
    if (!empty($context->block)) {
      spaces_customizers();
      space_customizer_block::customize($space, $identifier, $context->block);
    }
  }
}