function boxes_load in Boxes 6
Same name and namespace in other branches
- 7.2 boxes.module \boxes_load()
Load a box.
6 calls to boxes_load()
- boxes_block in ./
boxes.module - Implementation of hook_block().
- boxes_box::save in plugins/
boxes_box.inc - Save a box.
- boxes_footer in ./
boxes.module - Implementation of hook_footer().
- boxes_form_block_admin_configure_alter in ./
boxes.module - Implementation of hook_form_alter for block_admin_configure.
- boxes_form_block_admin_display_form_alter in ./
boxes.module - Alters the block admin form to add delete links next to boxes blocks.
File
- ./
boxes.module, line 239
Code
function boxes_load($delta = NULL) {
module_load_include('inc', 'boxes', 'plugins/boxes_box');
if (isset($delta)) {
$box = boxes_box::load($delta);
drupal_alter('boxes_load', $box, $delta);
return $box;
}
ctools_include('export');
$boxes = array();
foreach (ctools_export_load_object('box') as $box) {
$box = boxes_box::load($box->delta);
drupal_alter('boxes_load', $box, $delta);
$boxes[$box->delta] = $box;
}
return $boxes;
}