You are here

function tmgmt_ui_job_item_review in Translation Management Tool 7

Simple page callback for reviewing a job item.

Parameters

TMGMTJobItem $job: The job item to be reviewed

Return value

array A renderable array.

1 call to tmgmt_ui_job_item_review()
TMGMTJobItem::buildContent in entity/tmgmt.entity.job_item.inc
Builds a structured array representing the entity's content.

File

ui/includes/tmgmt_ui.pages.inc, line 76
Provides page callbacks and form functions for the Translation Management Tool User Interface module.

Code

function tmgmt_ui_job_item_review(TMGMTJobItem $item) {
  if ($controller = $item
    ->getSourceController()) {
    $plugin = $controller
      ->pluginType();
    return drupal_get_form('tmgmt_ui_' . $plugin . '_translation_review_form', $item);
  }
  drupal_access_denied();
  exit;
}