how to use entity_load() result? I am quite new to Drupal so this question may be very simple or basic. I created a module and I've extracted list of a custom content type for each user by using EntityFieldQuery and then I used entity_load to make the results ready. the question is how should I use the $archive_items in my template ?!?


&lt;?php
$archive_items = entity_load('node', $archive_items_nids);
?&gt;
Your function will give an array of entity objects, indexed by their entity_id's. So:

foreach ($archive_items as $entity_id =&gt; $archive_entity) {
  /* Process each entity */
}


will allow you to iterate through the entities and to do what you need to each. Beyond that, we will have to know what result you are trying to achieve.