If I recall correctly, these settings are only taken into account on 1st installation of the module (i.e. if there isn't an entry yet in the table {blocks} for this module-delta combination).<div>Did you perhaps install the module first, before setting the visibility & region parameter?</div>
<div>If so, you might want to try to reinstall the module or remove the entry from the blocks table.</div><div>If it's for a contrib module where you want to change the default settings (but i guess not), you'd have to alter the entry in {blocks} through hook_update_X().</div>
<div><br></div><div>Sven<br><br><div class="gmail_quote">On Thu, Jul 8, 2010 at 6:36 PM, Jeff Greenberg <span dir="ltr"><<a href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a theme that contains the region content_bottom. The region appears in the select boxes at admin/settings/block. I have a module that implements hook_block with:<br>
<br>
function mymodule_block($op = 'list', $delta = 0, $edit = array()) {<br>
switch ($op) {<br>
case 'list':<br>
$blocks[block1] = array(<br>
'info' => 'Block 1',<br>
'cache' => BLOCK_CACHE_GLOBAL,<br>
'weight' => -1,<br>
'status' => 1,<br>
'visibility' => 1,<br>
'region' => 'content_bottom',<br>
'pages' => '<front>',<br>
);<br>
return $blocks;<br>
<br>
and the block always appears in the disabled list. I tried using TRUE instead of 1 for status, which shouldn't make a difference, and didn't. The docs don't actually give an example of using region, other than saying you can, and a grep of 'region' starting at the document root in a module-laden sandbox seems to come up empty, so I'm not quite sure where to look.<br>
<font color="#888888">
<br>
Jeff<br>
<br>
</font></blockquote></div><br></div>