function blocks_get_available_blocks

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

Return an array of blocks which we can assign and display, as defined by other modules' hook_blocks function.

1 call to blocks_get_available_blocks()
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 402

Code

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

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

  return $rtn;

}