You are here

function bean_load in Bean (for Drupal 7) 7

Fetch a bean object.

Parameters

$bid: Integer specifying the bean id.

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

Return value

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

See also

bean_load_multiple()

7 calls to bean_load()
BeanTests::testBeanAPI in tests/BeanTests.test
Test the bean API.
bean_load_delta in ./bean.module
Fetch a bean object by its delta.
bean_services_access in ./bean.services.inc
Access callback for the bean resource.
bean_services_delete in ./bean.services.inc
Delete a bean.
bean_services_retrieve in ./bean.services.inc
Returns a specified bean.

... See full list

File

./bean.module, line 546
Block Entity

Code

function bean_load($bid, $reset = FALSE) {
  $beans = bean_load_multiple(array(
    $bid,
  ), array(), $reset);
  return reset($beans);
}