You are here

function lingotek_setup_comment_translation_settings_form in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_setup_comment_translation_settings_form()
  2. 7.4 lingotek.setup.inc \lingotek_setup_comment_translation_settings_form()
  3. 7.6 lingotek.setup.inc \lingotek_setup_comment_translation_settings_form()
1 string reference to 'lingotek_setup_comment_translation_settings_form'
lingotek_menu in ./lingotek.module
Implements hook_menu().

File

./lingotek.setup.inc, line 793

Code

function lingotek_setup_comment_translation_settings_form($form, &$form_state) {
  $form = lingotek_admin_entity_bundle_profiles_form($form, $form_state, 'comment', FALSE);
  drupal_add_js(drupal_get_path('module', 'lingotek') . '/js/lingotek.admin.js');
  if (is_array($_SESSION['lingotek_setup_path'])) {
    if (end($_SESSION['lingotek_setup_path']) == lingotek_get_entity_setup_path('comment')) {
      $null = array_pop($_SESSION['lingotek_setup_path']);
    }

    // if the user went back, remove the last element, which is this page.
    $form['translation_comment']['actions']['lingotek_back_button'] = lingotek_setup_link(end($_SESSION['lingotek_setup_path']), t('Previous Step'));
  }
  $form['translation_comment']['#submit'] = array(
    'lingotek_setup_comment_translation_settings_form_submit',
  );
  unset($form['translation_comment']['actions']['submit']);
  $form['translation_comment']['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );
  $form['lingotek_support_footer'] = lingotek_support_footer();
  return $form;
}