You are here

function authcache_example_block in Authenticated User Page Caching (Authcache) 6

Implementation of hook_block()

File

modules/authcache_example/authcache_example.module, line 64
authcache_example.module

Code

function authcache_example_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks[0] = array(
        'info' => t('Authcache Example Block'),
        'weight' => 10,
        'status' => 1,
        'region' => 'left',
        'cache' => BLOCK_NO_CACHE,
      );
      return $blocks;
      break;
    case 'configure':
      break;
    case 'view':
      $block = array(
        'subject' => t('Authcache Example'),
        'content' => authcache_example_display_block_0(),
      );
      return $block;
      break;
    case 'save':
      break;
  }
}