You are here

function esi_context_registry_alter in ESI: Edge Side Includes 6.2

Implements hook_context_registry_alter to use our custom block context plugin to output ESI tags instead of the block

Parameters

$registry array:

File

./esi.module, line 711
Adds support for ESI (Edge-Side-Include) integration, allowing blocks to be\ delivered by ESI, with support for per-block cache times.

Code

function esi_context_registry_alter(&$registry) {
  if (isset($registry['reactions']['block'])) {
    $registry['reactions']['block']['plugin'] = 'context_reaction_esi_block';
  }
}