function hosting_domain_allowed in Hosting 7.3
Same name and namespace in other branches
- 6.2 hosting.module \hosting_domain_allowed()
- 7.4 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
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 - Implements hook_post_hosting_TASK_TYPE_task().
- hosting_site_validate in site/
hosting_site.form.inc - Implements hook_validate().
- hosting_task_migrate_form_validate in migrate/
hosting_migrate.module - Implements hook_validate().
File
- ./
hosting.module, line 698 - 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;
}