Programatically accessing block settings Is it possible in Drupal 7 to load block visibility settings programatically in module? I'm rendering block programatically and I want to include checking those settings, so it still will be possible to hide block from UI. Property of "status" and "visibility" are not enough, since it's possible that the block won't be placed in any region at all.
Sure, block_load gives you the contents of the whole row from the block table:

$block = block_load('module', 'delta');

$region = $block-&gt;region;
$weight = $block-&gt;weight;
$custom = $block-&gt;custom;
$visibility = $block-&gt;visibility;
$pages = $block-&gt;pages;
$title = $block-&gt;title;


And so on.