You are here

function _homebox_db_fetch_all_blocks in Homebox 6

Helper function retrieve all results into one array

2 calls to _homebox_db_fetch_all_blocks()
homebox_load_blocks_in_regions in ./homebox.module
Loads available blocks for user
_homebox_apply_user_settings in ./homebox.module
Apply user defined settings like positionning bloxes sorting

File

./homebox.module, line 737
Home box main file, takes care of global functions settings constants, etc.

Code

function _homebox_db_fetch_all_blocks(&$result) {
  $records = array();
  while ($record = db_fetch_array($result)) {
    $records['bid_' . $record['bid']] = $record;
  }
  return $records;
}