Closed (fixed)
Project:
Documentation
Component:
Documentation in CVS
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2006 at 03:24 UTC
Updated:
2 Feb 2008 at 03:06 UTC
The example for the list op:
if ($op == 'list') {
$blocks[0] = array('info' => t('Mymodule block #1 shows ...'),
'weight' => 0, 'enabled' => 1, 'region' => 'left');
$blocks[1] = array('info' => t('Mymodule block #2 describes ...'),
'weight' => 0, 'enabled' => 0, 'region' => 'right');
return $blocks;
}
Seems to imply you should hard-code the enabled and region for each block. Of course doing this means that you can't change it with the admin interface. Confusing for new developers.
Comments
Comment #1
pwolanin commentedYes, this doesn't seem right as an example. I didn't even realize the region could be hard-coded.
Comment #2
nancydruWhy is that stuff in op=view? That's configuration stuff, it should only be in op=configure.
Comment #3
nancydruWhy is that stuff in op=list? That's configuration stuff, it should only be in op=configure.
Comment #4
nancydru