function esi_block_test_block_info in ESI: Edge Side Includes 7.3
Implements hook_block_info().
File
- modules/
esi_block/ tests/ esi_block_test.module, line 10 - Provide test esi_block_tests.
Code
function esi_block_test_block_info() {
$blocks['test1'] = array(
'info' => t('Test 1 - cache per user'),
'cache' => DRUPAL_CACHE_PER_USER,
);
$blocks['test2'] = array(
'info' => t('Test 2 - cache per role'),
'cache' => DRUPAL_CACHE_PER_ROLE,
);
$blocks['test3'] = array(
'info' => t('Test 3 - cache per page'),
'cache' => DRUPAL_CACHE_PER_PAGE,
);
$blocks['test4'] = array(
'info' => t('Test 4 - cache per user per page'),
'cache' => DRUPAL_CACHE_PER_USER | DRUPAL_CACHE_PER_PAGE,
);
$blocks['test5'] = array(
'info' => t('Test 5 - cache global'),
'cache' => DRUPAL_CACHE_GLOBAL,
);
$blocks['test6'] = array(
'info' => t('Test 6 - no cache'),
'cache' => DRUPAL_NO_CACHE,
);
return $blocks;
}