function boxes_box_load in Boxes 7
Load a box.
9 calls to boxes_box_load()
- boxes_block_configure in ./
boxes.module - Implements hook_block_configure().
- boxes_block_info in ./
boxes.module - Implements hook_block_info().
- boxes_block_view in ./
boxes.module - Implements hook_block_view().
- boxes_box::save in plugins/
boxes_box.inc - Save a box.
- boxes_footer in ./
boxes.module - Implements hook_footer().
File
- ./
boxes.module, line 372 - Core functionality for boxes module.
Code
function boxes_box_load($delta = NULL) {
if (isset($delta)) {
$box = boxes_box::load($delta);
drupal_alter('boxes_box_load', $box, $delta);
return $box;
}
ctools_include('export');
$boxes = array();
foreach (ctools_export_load_object('box') as $box) {
$box = boxes_box::load($box->delta);
if ($box) {
drupal_alter('boxes_box_load', $box, $delta);
$boxes[$box->delta] = $box;
}
}
return $boxes;
}