You are here

public function TMGMTDefaultTranslatorUIController::checkoutInfoWrapper in Translation Management Tool 7

Provides a simple wrapper for the checkout info fieldset.

Parameters

TMGMTJob $job: Translation job object.

$form: Partial form structure to be wrapped in the fieldset.

Return value

The provided form structure wrapped in a collapsed fieldset.

1 call to TMGMTDefaultTranslatorUIController::checkoutInfoWrapper()
TMGMTFileTranslatorUIController::checkoutInfo in translators/file/tmgmt_file.ui.inc
Retrieves information about a translation job.

File

plugin/tmgmt.ui.translator.inc, line 90

Class

TMGMTDefaultTranslatorUIController
Default ui controller class for translator plugins.

Code

public function checkoutInfoWrapper(TMGMTJob $job, $form) {
  $label = $job
    ->getTranslator()
    ->label();
  $form += array(
    '#title' => t('@translator translation job information', array(
      '@translator' => $label,
    )),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
  );
  return $form;
}