function translation_node_remove_submit in Internationalization 5.2
Same name and namespace in other branches
- 5.3 translation/translation.module \translation_node_remove_submit()
- 5 translation/translation.module \translation_node_remove_submit()
Form submit. Remove from translation set without confirmation.
File
- translation/
translation.module, line 775
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");
}