Chapter 9. Working with Blocks, Page 213
Thu, 11/27/2008 - 10:02am — guysaban
Location on the page:
upper middle
Chapter:
9. Working with Blocks
Error:
The following line of code:
$blocks[0]['cache'] = BLOCK_NO_CACHE;
is missing from:
case 'list':
$blocks[0]['info'] = t('Pending comments');
return $blocks;
Correction:
case 'list':
$blocks[0]['info'] = t('Pending comments');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
Description of the Error:
The block cache setting is missing from the approval.module code example on page 213. Its is included in all other examples of approval.module code in the "Building a Block" section.
