You are here

public function TMGMTJobUIController::operationFormSubmit in Translation Management Tool 7

Operation form submit callback.

Overrides EntityDefaultUIController::operationFormSubmit

File

ui/includes/tmgmt_ui.controller.job.inc, line 132
Contains the job UI controller.

Class

TMGMTJobUIController
Entity UI controller for the Job Entity.

Code

public function operationFormSubmit($form, &$form_state) {
  parent::operationFormSubmit($form, $form_state);
  if ($form_state['op'] == 'resubmit') {
    $form_state['redirect'] = $this->path . '/' . $this->jobToResubmit->tjid;
  }
}