[development] block hook problem on D6
Alessandro Feijó
patrao at legendas.feijo.info
Thu Jan 3 02:41:13 UTC 2008
if I set my $blocks array like this:
case 'list':
$blocks[0] = array('info' => 'name');
$blocks[1] = array('info' => 'name');
$blocks[2] = array('info' => 'name');
only the first one appears on Blocks config page
I just changed to this:
$blocks[] = array('info' => 'name');
$blocks[] = array('info' => 'name');
$blocks[] = array('info' => 'name');
And worked!! All three shows up
I tested with this example, same problem:
http://api.drupal.org/api/function/hook_block/6
Feijó
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080103/5662e5b4/attachment.htm
More information about the development
mailing list