You are here

function lingotek_form_cleanup_utility in Lingotek Translation 7.2

Administration form for the field language cleanup utility.


array: The current FAPI form state array.

Return value

array A FAPI form array.

1 string reference to 'lingotek_form_cleanup_utility'
lingotek_menu in ./lingotek.module
Implements hook_menu().


./, line 454


function lingotek_form_cleanup_utility($form_state) {
  $form = array();
  $translatable_fields = lingotek_translatable_node_fields();
  $form['description'] = array(
    '#markup' => '<p class="help">' . t('This tool identifies translatable content and processes all existing field data for translation-enabled fields on nodes,
      ensuring that if data was entered before enabling field translation on a field
      that the existing field data is copied over to the parent node\'s current language.') . "</p>",

  /*$form['warning'] = array(
      '#markup' => '<p class="help">' . t('<strong>WARNING:</strong> This tool makes changes to your site\'s data. We strongly encourage you to back up your database before using this tool.') .
    $form['status'] = array(
      '#markup' => theme('item_list', array('items' => $translatable_fields, 'title' => t('Translation-enabled Fields'), 'type' => 'ul')),
    $form[] = array(
      '#markup' => '<br/>'
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Run Cleanup Utility'),
  return $form;