You are here

function bean_load_revision in Bean (for Drupal 7) 7

Fetch a bean revision

A new function to not break the bean_load API

1 call to bean_load_revision()
bean_load_delta in ./bean.module
Fetch a bean object by its delta.

File

./bean.module, line 556
Block Entity

Code

function bean_load_revision($bid, $vid, $reset = FALSE) {
  $conditions = array(
    'vid' => $vid,
  );
  $beans = bean_load_multiple(array(
    $bid,
  ), $conditions, $reset);
  return reset($beans);
}