You are here

function sarnia_view_multiple in Sarnia 7

1 string reference to 'sarnia_view_multiple'
sarnia_entity_info in ./sarnia.module
Implements hook_entity_info().

File

./sarnia.module, line 964

Code

function sarnia_view_multiple($entities, $view_mode = 'default', $langcode = NULL) {
  $output = array();
  foreach ($entities as $entity) {
    $output[$entity->id] = sarnia_view($entity, $view_mode, $langcode);
  }
  return $output;
}