function lingotek_signup_form in Lingotek Translation 6
1 call to lingotek_signup_form()
File
- ./
lingotek.admin.inc, line 104
Code
function lingotek_signup_form() {
global $_version;
$form['auth'] = array(
'#type' => 'fieldset',
'#title' => t('Authentication Settings'),
'#description' => t('Lingotek Module Version 6.22.@revision<br />Please login using your existing Lingotek ID, or click !link if you need to create a new account.', array(
'@revision' => $_version,
'!link' => l(t("here"), variable_get('lingotek_url', 'http://myaccount.lingotek.com') . "/lingopoint/portal/communitySignup.action"),
)),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#group' => 'administrative_settings',
);
$form['auth']['lingotek_login_id'] = array(
'#type' => 'textfield',
'#title' => t('Login ID'),
'#description' => t('Lingotek User ID'),
'#default_value' => variable_get('lingotek_login_id', ''),
);
$form['auth']['lingotek_password'] = array(
'#type' => 'password',
'#title' => t('Password'),
'#description' => t('Lingotek Password'),
'#default_value' => '',
);
//Advanced settings
$form['advanced'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced Settings'),
'#description' => t('These settings will only be changed in rare cases. If your user is not a Community Admin on the Lingotek platform, then you will need to authenticate here.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#group' => 'administrative_settings',
);
$form['advanced']['lingotek_url'] = array(
'#type' => 'textfield',
'#title' => t('Lingotek URL'),
'#description' => t('URL pointing to the Lingotek instance to be used.'),
'#default_value' => variable_get('lingotek_url', 'http://myaccount.lingotek.com'),
);
$form['advanced']['lingotek_login_key'] = array(
'#type' => 'textfield',
'#title' => t('Login Key'),
'#description' => t('Key to use authenticating. The key must be generated by the Lingotek system and it specific to a community.'),
'#default_value' => variable_get('lingotek_login_key', ''),
);
$form['advanced']['lingotek_community'] = array(
'#type' => 'textfield',
'#title' => t('Community ID'),
'#description' => t('Community in which the project exists and translations will be made.'),
'#default_value' => variable_get('lingotek_community', ''),
);
return $form;
}