You are here

function l10n_update_default_server in Localization update 6

Same name and namespace in other branches
  1. 7 l10n_update.inc \l10n_update_default_server()

Retrieve data for default server.

Return value

array Server parameters: name : Localization server name server_url : Localization server URL where language list can be retrieved. update_url : URL containing po file pattern.

3 calls to l10n_update_default_server()
hook_l10n_servers in ./l10n_update.api.php
Returns available translation servers and server definitions.
l10n_update_build_projects in ./l10n_update.project.inc
Rebuild project list
l10n_update_l10n_servers in ./l10n_update.module
Implementation of hook_l10n_servers().
1 string reference to 'l10n_update_default_server'
l10n_update_uninstall in ./l10n_update.install
Implementation of hook_uninstall().

File

./l10n_update.inc, line 36

Code

function l10n_update_default_server() {
  return array(
    'name' => variable_get('l10n_update_default_server', L10N_UPDATE_DEFAULT_SERVER),
    'server_url' => variable_get('l10n_update_default_server_url', L10N_UPDATE_DEFAULT_SERVER_URL),
    'update_url' => variable_get('l10n_update_default_update_url', L10N_UPDATE_DEFAULT_UPDATE_URL),
  );
}