Below is my block hook... I have used the exact same structure for all my implementations of hook_block(); and lately in my last three installs every time I implement something similar to below ALL blocks do not display, I stepped through some of the code and it seems like they are being built properly...
Regions are correct and displaying when the code below is not present. When I switch back to Garland and place the block created below, it shows up fine and so do all the others. I am clueless!
function ostrf_block($op = 'list', $delta = 0, $edit = array()){
switch ($op) {
case 'list':
$blocks[0]['info'] = t('OSTRF - Newsletters');
return $blocks;
case 'view':
$block = array();
switch($delta){
case 0:
$block['subject'] = t('Newsletters');
$block['content'] = 'test???';
break;
}
return $block;
}
} on line 715 in blocks.module "return $blocks[$region]; " is populated, and then the chunk directly after is
if ($list = block_list($region)) {
foreach ($list as $key => $block) {
// $key == <i>module</i>_<i>delta</i>
$output .= theme('block', $block);
}
}
$list should be populated just like $blocks[$region]; was, but its NULL !!!! wtf? then I ran the debugger again on Garland, and $list is populated!!
Comments
Comment #1
dpearcefl commentedConsidering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.