function hosting_site_get_port in Hosting 7.4
Same name and namespace in other branches
- 6.2 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 234 - Contains hook implementations for Hosting site module.
Code
function hosting_site_get_port($node) {
$platform = node_load($node->platform);
$server = node_load($platform->web_server);
return $server->services['http']->port;
}