You are here

function tmgmt_local_task_view in Translation Management Tool 7

Simple page callback for viewing a task.

Parameters

TMGMTJob $task: The viewed task.

Return value

array A renderable array.

1 string reference to 'tmgmt_local_task_view'
TMGMTLocalTaskUIController::hook_menu in translators/tmgmt_local/controller/tmgmt_local.ui_controller.task.inc
Provides definitions for implementing hook_menu().

File

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

Code

function tmgmt_local_task_view(TMGMTLocalTask $task) {
  return entity_view($task
    ->entityType(), array(
    $task,
  ), 'full', NULL, TRUE);
}