You are here

function blockcache_alter_block in Block Cache Alter 6

Implementation of hook_block().

Functions underneath will only be called when someone programmaticaly calls a block in code with module_invoke, eg:

$block = module_invoke('blockcache_alter', 'block', 'view', 'block,14'); print $block['content'];

The last parameter should consist of the name of original block and its original delta seperated by comma. All blocks can be cached this way.

File

./blockcache_alter.module, line 457
Block Cache alter.

Code

function blockcache_alter_block($op, $delta = 0, $edit = array()) {
  switch ($op) {
    case 'view':
      return blockcache_alter_block_view($delta);
  }
}