function tmgmt_local_task_form_submit in Translation Management Tool 7
Submit callback for the local task form.
File
- translators/
tmgmt_local/ includes/ tmgmt_local.pages.inc, line 94 - Provides page and forms callbacks.
Code
function tmgmt_local_task_form_submit($form, &$form_state) {
$task = entity_ui_form_submit_build_entity($form, $form_state);
// If the task isn't assigned to anyone but doesn't have the unassigned status
// update it.
if ($task->tuid == 0 && !$task
->isUnassigned()) {
$task
->unassign();
}
$task
->save();
}