You are here

function hosting_site_get_port in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 site/hosting_site.module \hosting_site_get_port()
  2. 7.4 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 229
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;
}