function lingotek_setup_new_account_form in Lingotek Translation 7.7
Same name and namespace in other branches
- 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.5 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('Create New Lingotek Account'),
);
$form['lingotek_back_button'] = lingotek_connect_account_link('Do you already have a Lingotek account? ', LINGOTEK_MENU_LANG_BASE_URL . '/account-settings', t('Connect Lingotek Account'));
$form['lingotek_support_footer'] = lingotek_support_footer();
return $form;
}