You are here

function tb_megamenu_block_content_exists in The Better Mega Menu 7

1 call to tb_megamenu_block_content_exists()
tb_megamenu_sync_config in ./tb_megamenu.functions.inc

File

./tb_megamenu.functions.inc, line 255

Code

function tb_megamenu_block_content_exists($block_key, $section) {
  $block = tb_megamenu_load_block($block_key);
  if ($block) {
    $module = $block->module;
    $delta = $block->delta;
    $content = module_invoke($module, 'block_view', $delta);
    if ($content || $section == 'backend') {
      return TRUE;
    }
  }
  return FALSE;
}