function menu_block_get_exported_blocks in Menu Block 7.2
Same name and namespace in other branches
- 7.3 menu_block.module \menu_block_get_exported_blocks()
Fetch all exported menu blocks.
Return value
array
3 calls to menu_block_get_exported_blocks()
- menu_block_get_config in ./
menu_block.module - Returns the configuration for the requested block delta.
- _menu_block_block_info in ./
menu_block.admin.inc - Implements hook_block_info().
- _menu_block_form_block_admin_display_form_alter in ./
menu_block.admin.inc - Alters the block admin form to add delete links next to menu blocks.
File
- ./
menu_block.module, line 257 - Provides configurable blocks of menu items.
Code
function menu_block_get_exported_blocks() {
$blocks =& drupal_static(__FUNCTION__);
if (!isset($blocks)) {
$blocks = array();
// Do not use module_invoke_all() since it rewrites numeric indexes.
// Although exported menu blocks should not be using numeric IDs, we
// should still prevent them from being changed.
foreach (module_implements('menu_block_blocks') as $module) {
$blocks += module_invoke($module, 'menu_block_blocks');
}
}
return $blocks;
}