function prev_next_block_info in Previous/Next API 7
Same name and namespace in other branches
- 7.2 prev_next.block.inc \prev_next_block_info()
Implements hook_block_info().
File
- ./
prev_next.module, line 279
Code
function prev_next_block_info() {
$num_blocks = variable_get('prev_next_num_blocks', PREV_NEXT_NUM_BLOCKS_DEFAULT);
for ($b = 0; $b < $num_blocks; $b++) {
$blocks[$b] = array(
'info' => t('Prev/Next links !blocknum', array(
'!blocknum' => 1 + $b,
)),
'status' => 0,
'cache' => DRUPAL_CACHE_PER_PAGE,
);
}
return $blocks;
}