You are here

function hosting_domain_allowed in Hostmaster (Aegir) 6

Check site URL is allowed.

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

All the hooks must return true for the domain to be allowed.

See also

hook_allow_domain()

4 calls to hosting_domain_allowed()
hosting_alias_nodeapi in modules/hosting/alias/hosting_alias.module
Implementation of hook_nodeapi().
hosting_platform_post_hosting_verify_task in modules/hosting/platform/hosting_platform.drush.inc
Implementation hook_post_verify().
hosting_site_exists in modules/hosting/site/hosting_site.module
Check if a site exists in a somehow wrong way
hosting_site_validate in modules/hosting/site/hosting_site.form.inc
Implements hook_validate().

File

modules/hosting/hosting.module, line 417
Hosting module.

Code

function hosting_domain_allowed($url, $params = array()) {
  $results = module_invoke_all('allow_domain', $url, $params);
  $return = !in_array(FALSE, $results);
  return $return;
}