function hosting_alias_automatic_aliases in Hosting 7.4
Same name and namespace in other branches
- 5 alias/hosting_alias.module \hosting_alias_automatic_aliases()
- 6.2 alias/hosting_alias.module \hosting_alias_automatic_aliases()
- 7.3 alias/hosting_alias.module \hosting_alias_automatic_aliases()
Generate a default set of aliases for the site based on the global options.
1 call to hosting_alias_automatic_aliases()
- hosting_alias_insert in alias/
hosting_alias.module - Save stored aliases for a new site.
File
- alias/
hosting_alias.module, line 551 - Allow sites to have domain aliases that they can be accessed with.
Code
function hosting_alias_automatic_aliases($url) {
$aliases = module_invoke_all('hosting_automatic_aliases', $url);
$context = [
'url' => $url,
];
drupal_alter('hosting_automatic_aliases', $aliases, $context);
return $aliases;
}