You are here

function hosting_domain_allowed in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 hosting.module \hosting_domain_allowed()
  2. 7.3 hosting.module \hosting_domain_allowed()

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_validate_alias in alias/hosting_alias.module
Ensure that an alias is valid, and not already in use.
hosting_platform_post_hosting_verify_task in platform/hosting_platform.drush.inc
Implementation hook_post_verify().
hosting_site_validate in site/hosting_site.form.inc
Implements hook_validate().
hosting_task_migrate_form_validate in migrate/hosting_migrate.module
Implementation of hook_validate().

File

./hosting.module, line 444
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;
}