function lingotek_get_site_name in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_get_site_name()
- 7.2 lingotek.util.inc \lingotek_get_site_name()
- 7.3 lingotek.util.inc \lingotek_get_site_name()
- 7.5 lingotek.util.inc \lingotek_get_site_name()
- 7.6 lingotek.util.inc \lingotek_get_site_name()
Returns the site name, or base url if that isn't set.
4 calls to lingotek_get_site_name()
- LingotekApi::createCommunity in lib/
Drupal/ lingotek/ LingotekApi.php - Calls a Lingotek API to provision a new Community (account). Modified version of the request() method.
- lingotek_identify_lead in ./
lingotek.setup.inc - Identify lead details
- lingotek_project_vault_select_form in ./
lingotek.setup.inc - Project Select Screen (for Current Users) - Form Layout
- lingotek_setup_new_account_form_submit in ./
lingotek.setup.inc - New Account - Form Processor Provisions a Lingotek account and sends activation notice.
File
- ./
lingotek.util.inc, line 993 - Utility functions.
Code
function lingotek_get_site_name() {
$site_name = variable_get('site_name', NULL);
if (empty($site_name)) {
global $base_root;
$site_url = parse_url($base_root);
$site_name = $site_url['host'];
}
return $site_name;
}