function hosting_site_clean_domain in Hosting 7.3
Same name and namespace in other branches
- 7.4 site/hosting_site.module \hosting_site_clean_domain()
Ensure domains are properly formatted.
7 calls to hosting_site_clean_domain()
- hosting_alias_insert in alias/
hosting_alias.module - Save stored aliases for a new site.
- hosting_alias_validate_alias in alias/
hosting_alias.module - Ensure that an alias is valid, and not already in use.
- hosting_clone_post_hosting_clone_task in clone/
hosting_clone.drush.inc - @todo Please document this function.
- hosting_migrate_post_hosting_migrate_task in migrate/
hosting_migrate.drush.inc - @todo Please document this function.
- hosting_site_canonical_url in site/
hosting_site.module - Get a site's canonical URL.
File
- site/
hosting_site.module, line 834 - Contains hook implementations for Hosting site module.
Code
function hosting_site_clean_domain($domain) {
// Domain names are case-insensitive.
return strtolower(trim($domain));
}