function _menu_block_block_list in Menu Block 6.2
Same name and namespace in other branches
- 5.2 menu_block.admin.inc \_menu_block_block_list()
- 5 menu_block.admin.inc \_menu_block_block_list()
Returns the 'list' $op info for hook_block().
File
- ./
menu_block.admin.inc, line 98 - Provides infrequently used functions for menu_block.
Code
function _menu_block_block_list() {
$blocks = array();
foreach (variable_get('menu_block_ids', array()) as $delta) {
$blocks[$delta]['info'] = _menu_block_format_title(menu_block_get_config($delta));
// Menu blocks can't be cached because each menu item can have
// a custom access callback. menu.inc manages its own caching.
$blocks[$delta]['cache'] = BLOCK_NO_CACHE;
}
return $blocks;
}