You are here

function lingotek_node_content_reset_form in Lingotek Translation 7.3

Form constructor for the node content reset form. (Reset Translations)

1 string reference to 'lingotek_node_content_reset_form'
lingotek_pm in ./lingotek.page.inc
Page callback for the Lingotek local task on node detail pages.

File

./lingotek.page.inc, line 152
Lingotek Tab for Nodes

Code

function lingotek_node_content_reset_form($form, $form_state, $node) {
  $form = array();
  $form['reset_translations'] = array(
    '#type' => 'fieldset',
    '#title' => t('Reset Translations'),
    '#description' => t("Disassociates the node's locally-published translations from their counterparts on Lingotek's servers. This allows for your Drupal content to be re-uploaded to Lingotek, so that it can be retranslated entirely using the currently-defined workflow. Also resets the node's translation management settings to their defaults."),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['reset_translations']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Reset Translations'),
  );
  $form['node_id'] = array(
    '#type' => 'hidden',
    '#value' => $node->nid,
  );
  return $form;
}