You are here

function tmgmt_local_task_item_view in Translation Management Tool 7

Simple page callback for viewing a task.

Parameters

TMGMTLocalTaskItem $item: The viewed task item

Return value

array A renderable array.

1 string reference to 'tmgmt_local_task_item_view'
TMGMTLocalTaskItemUIController::hook_menu in translators/tmgmt_local/controller/tmgmt_local.ui_controller.task_item.inc
Provides definitions for implementing hook_menu().

File

translators/tmgmt_local/includes/tmgmt_local.pages.inc, line 115
Provides page and forms callbacks.

Code

function tmgmt_local_task_item_view(TMGMTLocalTaskItem $item) {
  return entity_view($item
    ->entityType(), array(
    $item,
  ), 'full', NULL, TRUE);
}