function lingotek_get_site_name in Lingotek Translation 7.3
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.4 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.
2 calls to lingotek_get_site_name()
- lingotek_identify_lead in ./
lingotek.setup.inc - Identify lead details
- 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 888 - 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;
}