You are here

function hosting_site_exists in Hosting 5

Check if site with URL already exists.

This function hooks into hook_allow_domain to let contrib modules weigh in on whether the site should be created.

2 calls to hosting_site_exists()
hosting_alias_nodeapi in alias/hosting_alias.module
Implementation of hook_nodeapi
hosting_site_validate in site/hosting_site.module

File

site/hosting_site.module, line 582

Code

function hosting_site_exists($url, $nid = null) {
  $results = module_invoke_all('allow_domain', $url, $nid);
  $result = in_array(TRUE, $results);
  return $result;
}