function og_msgid_server in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_msgid_server()
- 5 og.module \og_msgid_server()
- 5.3 og.module \og_msgid_server()
- 5.7 og.module \og_msgid_server()
- 6.2 og.module \og_msgid_server()
- 6 og.module \og_msgid_server()
2 calls to og_msgid_server()
- og_comment in ./
og.module - og_nodeapi in ./
og.module - Implementation of hook_nodeapi().
File
- ./
og.module, line 1380
Code
function og_msgid_server() {
global $base_url;
if ($dir = str_replace("/", ".", substr(strchr(str_replace("http://", "", $base_url), "/"), 1))) {
$at = "@{$dir}." . $_SERVER['SERVER_NAME'];
}
else {
$at = '@' . $_SERVER['SERVER_NAME'];
}
return strtolower($at);
}