You are here

function lingotek_setup_new_account_form in Lingotek Translation 7.2

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

New Account - Form

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

File

./lingotek.setup.inc, line 35
Lingotek Easy Install Process.

Code

function lingotek_setup_new_account_form() {
  $current_login_id = variable_get('lingotek_login_id', '');
  $current_login_key = variable_get('lingotek_login_key', '');
  $current_first_name = variable_get('lingotek_activation_first_name', '');
  $current_last_name = variable_get('lingotek_activation_last_name', '');
  $current_email = variable_get('lingotek_activation_email', '');
  $form = array();
  $form['lingotek_user_directions_1'] = array(
    '#markup' => '<p>New to Lingotek?  Create a free account.</p><p>A Lingotek account is required to process your language translations.  <strong>All fields are required.</strong></p>',
  );
  $form['lingotek_user_directions_2'] = array(
    '#markup' => '<div>&nbsp;</div>',
  );
  $form['lingotek_user_directions_3'] = array(
    '#markup' => '<h3>Your information</h3>',
  );
  $form['lingotek_user_directions_4'] = array(
    '#markup' => '<hr>',
  );
  $form['lingotek_top_spacer'] = array(
    '#markup' => '<div>&nbsp;</div>',
  );
  $form['first_name'] = array(
    '#type' => 'textfield',
    '#title' => t('First name'),
    '#default_value' => $current_first_name,
    '#size' => 30,
    '#maxlength' => 128,
    '#required' => TRUE,
  );
  $form['last_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Last name'),
    '#default_value' => $current_last_name,
    '#size' => 30,
    '#maxlength' => 128,
    '#required' => TRUE,
  );
  $form['email'] = array(
    '#type' => 'textfield',
    '#title' => t('Email address'),
    '#default_value' => $current_email,
    '#size' => 40,
    '#maxlength' => 128,
    '#required' => TRUE,
  );
  $form['lingotek_button_spacer'] = array(
    '#markup' => '<div>&nbsp;</div>',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );
  $form['lingotek_back_button'] = lingotek_setup_link('admin/config/lingotek/account-settings', t('Already have an account?'));
  $form['lingotek_support_footer'] = lingotek_support_footer();
  return $form;
}