function l10n_client_settings_form in Localization client 6.2
Same name and namespace in other branches
- 6 l10n_client.module \l10n_client_settings_form()
- 7 l10n_client.admin.inc \l10n_client_settings_form()
Settings form for l10n_client.
Enable users to set up a central server to share translations with.
1 string reference to 'l10n_client_settings_form'
- l10n_client_menu in ./
l10n_client.module - Implementation of hook_menu().
File
- ./
l10n_client.admin.inc, line 13 - Administrative page callbacks for the Localization client module.
Code
function l10n_client_settings_form() {
$form = array();
$form['l10n_client_use_server'] = array(
'#title' => t('Enable sharing translations with server'),
'#type' => 'checkbox',
'#default_value' => variable_get('l10n_client_use_server', FALSE),
);
$form['l10n_client_server'] = array(
'#title' => t('Address of localization server to use'),
'#type' => 'textfield',
'#description' => t('Each translation submission will also be submitted to this server. We suggest you enter <a href="@localize">http://localize.drupal.org</a> to share with the greater Drupal community. Make sure you set up an API-key in the user account settings for each user that will participate in the translations.', array(
'@localize' => 'http://localize.drupal.org',
)),
'#default_value' => variable_get('l10n_client_server', 'http://localize.drupal.org'),
);
return system_settings_form($form);
}