You are here

function translation_node_remove_submit in Internationalization 5

Same name and namespace in other branches
  1. 5.3 translation/translation.module \translation_node_remove_submit()
  2. 5.2 translation/translation.module \translation_node_remove_submit()

Form submit. Remove from translation set without confirmation.

File

translation/translation.module, line 743

Code

function translation_node_remove_submit($form_id, $form_values) {
  $node = $form_values['node'];
  db_query("UPDATE {i18n_node} SET trid = 0 WHERE nid = %d", $node->nid);
  drupal_set_message(t("The node has been removed from the translation set"));
  drupal_goto("node/{$node->nid}/translation");
}