You are here

function bean_view_callback in Bean (for Drupal 7) 7

View callback

1 string reference to 'bean_view_callback'
bean_entity_info in ./bean.module
Implements hook_entity_info().

File

./bean.module, line 844
Block Entity

Code

function bean_view_callback($entities, $view_mode, $langcode, $entity_type) {
  $render = array();
  foreach ($entities as $key => $entity) {
    $id = entity_id($entity_type, $entity);
    $render[$entity_type][$id] = bean_view($entity, $view_mode, $langcode);
  }
  return $render;
}