function blocks_get_sections_and_regions

4.x blocks.module blocks_get_sections_and_regions()
5.x blocks.module blocks_get_sections_and_regions()

Look through our modules for hook_block_region and assemble them in an array.

1 call to blocks_get_sections_and_regions()
blocks_manage_blocks_form in modules/blocks/blocks.module
This form lets the user manage the various blocks in the system.

File

modules/blocks/blocks.module, line 419

Code

function blocks_get_sections_and_regions() {
  $rtn = array();

  $modules = modules_implement_hook("block_regions");
  foreach ($modules as $module) {
    $arr = call_user_func($module . "_block_regions");
    $rtn [$module] = $arr;
  }

  return $rtn;

}