You are here

function hook_esi_block_context_alter in ESI: Edge Side Includes 7.3

Alter the parameters of $block before having the context restored by esi_block__restore_context().

Parameters

Object $block: A populated block object.

1 invocation of hook_esi_block_context_alter()
esi_block__esi_block_prepare in modules/esi_block/esi_block.esi.inc
Prepare an ESI block for rendering. Defined in hook_esi_component_info().

File

modules/esi_block/esi_block.api.inc, line 25
API documentation for hooks defined by ESI Block.

Code

function hook_esi_block_context_alter(&$block) {

  // Prevent all caching.
  $block->cache = DRUPAL_NO_CACHE;
}