How does an entity get printed into a page after going though the page callback function? This following code snippet is the value of page callback from hook_menu(). However, I cannot connect entity_view and the page template. How can I print or access the entity_view returned in this code from  my page template?

function example_task_view($task) {
  drupal_set_title(entity_label('example_task', $task));
  return entity_view('example_task', array(entity_id('example_task', $task) =&gt; $task), 'full');
}
You should pass the array of fully-loaded entity objects to the entity_view function, not only the id.

For example:

...
$entity = entity_load('example_task', array($task);
return entity_view('example_task', $entity, 'full');