You are here

function _delta_blocks_is_enabled in Delta 7.3

Verify if a given block is enabled in the admin settings.

2 calls to _delta_blocks_is_enabled()
delta_blocks_block_info in delta_blocks/delta_blocks.module
Implements hook_block_info().
delta_blocks_block_view in delta_blocks/delta_blocks.module
Implements hook_block_view().

File

delta_blocks/delta_blocks.module, line 441
Exposes a number of core Drupal elements as blocks.

Code

function _delta_blocks_is_enabled($delta) {
  $blocks = variable_get('delta_blocks_toggle', array());
  if (!empty($blocks[$delta]) || !isset($blocks[$delta])) {
    return TRUE;
  }
  return FALSE;
}