function tb_megamenu_get_blocks_options in The Better Mega Menu 7
2 calls to tb_megamenu_get_blocks_options()
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;
}