You are here

function tb_megamenu_get_blocks_options in The Better Mega Menu 7

2 calls to tb_megamenu_get_blocks_options()
tb_megamenu_get_block_title in ./tb_megamenu.functions.inc
template_preprocess_tb_megamenu_backend in ./tb_megamenu.themes.inc

File

./tb_megamenu.functions.inc, line 80

Code

function tb_megamenu_get_blocks_options() {
  static $_blocks_array = array();
  if (empty($_blocks_array)) {
    $blocks = _block_rehash($GLOBALS['conf']['theme_default']);
    $_blocks_array = array();
    foreach ($blocks as $block) {
      if ($block['module'] != 'tb_megamenu') {
        $_blocks_array[$block['module'] . '--' . $block['delta']] = empty($block['info']) ? $block['title'] : $block['info'];
      }
    }
    asort($_blocks_array);
  }
  return $_blocks_array;
}