function lingotek_setup_new_account_form in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.setup.inc \lingotek_setup_new_account_form()
- 7.2 lingotek.setup.inc \lingotek_setup_new_account_form()
- 7.3 lingotek.setup.inc \lingotek_setup_new_account_form()
- 7.4 lingotek.setup.inc \lingotek_setup_new_account_form()
- 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 28
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['description'] = array(
'#type' => 'item',
'#title' => 'Create Account',
'#description' => 'New to Lingotek? Create a free account. <p>A Lingotek account is required to process your language translations. <strong>All fields are required.</strong></p>',
);
$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> </div>',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Next'),
);
$form['lingotek_back_button'] = lingotek_setup_link('admin/config/lingotek/account-settings', t('Enterprise Customers - Connect Here'));
$form['lingotek_support_footer'] = lingotek_support_footer();
return $form;
}