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) => $task), 'full');
}