You are here

function sharedblocks_is_block_published in Shared Blocks 7.2

Check if a block is set to be published.

2 calls to sharedblocks_is_block_published()
sharedblocks_publish_block_access in ./sharedblocks.module
Access callback for block public callback.
sharedblocks_publish_form in ./sharedblocks.admin.inc
From constructor for the publish blocks form.

File

./sharedblocks.publish.inc, line 11
Publish block page callbacks for the sharedblocks module.

Code

function sharedblocks_is_block_published($module, $delta) {
  $shared_blocks = variable_get('sharedblocks_publish', array());
  return !empty($shared_blocks[$module][$delta]);
}