You are here

function boxes_load in Boxes 7.2

Same name and namespace in other branches
  1. 6 boxes.module \boxes_load()

Fetch a boxes object.

Parameters

$bid: Integer specifying the boxes id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

A fully-loaded $boxes object or FALSE if it cannot be loaded.

See also

boxes_load_multiple()

1 call to boxes_load()
BoxTests::testBoxesAPI in ./boxes.test
Test the boxes API

File

./boxes.module, line 414

Code

function boxes_load($bid, $reset = FALSE) {
  $boxes = boxes_load_multiple(array(
    $bid,
  ), array(), $reset);
  return reset($boxes);
}