You are here

function l10n_client_settings_form in Localization client 6

Same name and namespace in other branches
  1. 6.2 l10n_client.admin.inc \l10n_client_settings_form()
  2. 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.module, line 531
Localization client. Provides on-page translation editing.

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 the server, if the personal key is set up for the submitter in their user profile. We suggest you set this to <a href="@localize">http://localize.drupal.org</a> to share with the greater Drupal community.', array(
      '@localize' => 'http://localize.drupal.org',
    )),
    '#default_value' => variable_get('l10n_client_server', ''),
  );
  return system_settings_form($form);
}