You are here

function lingotek_setup_account_settings_form in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.2 lingotek.setup.inc \lingotek_setup_account_settings_form()
  2. 7.3 lingotek.setup.inc \lingotek_setup_account_settings_form()
  3. 7.4 lingotek.setup.inc \lingotek_setup_account_settings_form()
  4. 7.5 lingotek.setup.inc \lingotek_setup_account_settings_form()
  5. 7.6 lingotek.setup.inc \lingotek_setup_account_settings_form()

Account Settings (for Current Users) - Form

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

File

./lingotek.setup.inc, line 240

Code

function lingotek_setup_account_settings_form() {
  $title_message = 'Account Login';
  $current_login_id = variable_get('lingotek_login_id', '');
  $current_password = variable_get('lingotek_password', '');
  $form = array();
  $form['lingotek_user_directions_1'] = array(
    '#type' => 'item',
    '#title' => filter_xss($title_message),
    '#description' => 'Connect an existing Lingotek account. This option is for users with an active paid TMS subscription.',
  );
  $form['lingotek_lid'] = array(
    '#type' => 'textfield',
    '#title' => t('Username'),
    '#default_value' => $current_login_id,
    '#size' => 40,
    '#maxlength' => 128,
    '#required' => TRUE,
    '#attributes' => array(
      'autocomplete' => array(
        'off',
      ),
    ),
  );
  $form['lingotek_pid'] = array(
    '#type' => 'password',
    '#title' => t('Password'),
    '#default_value' => $current_password,
    '#size' => 40,
    '#maxlength' => 128,
    '#required' => TRUE,
    '#attributes' => array(
      'autocomplete' => array(
        'off',
      ),
    ),
  );
  $form['lingotek_button_spacer'] = array(
    '#markup' => '<div>&nbsp;</div>',
  );
  $form['save_settings'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );
  $form['lingotek_back_button'] = lingotek_setup_link_on_right(LINGOTEK_MENU_LANG_BASE_URL . '/new-account', t('No subscription? Go back and register for free.'));
  $form['lingotek_support_footer'] = lingotek_support_footer();
  return $form;
}