function hosting_site_get_port in Hosting 6.2
Same name and namespace in other branches
- 7.4 site/hosting_site.module \hosting_site_get_port()
- 7.3 site/hosting_site.module \hosting_site_get_port()
Retrieve the port the site will be available on, so we can redirect.
File
- site/
hosting_site.module, line 184
Code
function hosting_site_get_port($node) {
$platform = node_load($node->platform);
$server = node_load($platform->web_server);
return $server->services['http']->port;
}