public function TMGMTLocalTaskUIController::operationForm in Translation Management Tool 7
Builds the operation form.
For the export operation a serialized string of the entity is directly shown in the form (no submit function needed).
Overrides EntityDefaultUIController::operationForm
File
- translators/
tmgmt_local/ controller/ tmgmt_local.ui_controller.task.inc, line 47
Class
- TMGMTLocalTaskUIController
- Entity UI controller for the local task entity.
Code
public function operationForm($form, &$form_state, $entity, $op) {
switch ($op) {
case 'delete':
$confirm_question = t('Are you sure you want to delete the translation task %label?', array(
'%label' => $entity
->label(),
));
return confirm_form($form, $confirm_question, $this->path);
case 'unassign':
$confirm_question = t('Are you sure you want to unassign from the translation task %label?', array(
'%label' => $entity
->label(),
));
return confirm_form($form, $confirm_question, $this->path);
}
drupal_not_found();
exit;
}