function boxes_block_info in Boxes 7.2
Same name and namespace in other branches
- 7 boxes.module \boxes_block_info()
Implements hook_block_info().
File
- ./
boxes.module, line 664
Code
function boxes_block_info() {
$blocks = array();
$boxes = boxes_get_all_boxes();
foreach ($boxes as $box) {
$blocks[$box->delta] = array(
'info' => $box->label,
'cache' => $box
->getInfo('cache_level'),
);
}
return $blocks;
}