You are here

function hosting_alias_automatic_aliases in Hosting 7.3

Same name and namespace in other branches
  1. 5 alias/hosting_alias.module \hosting_alias_automatic_aliases()
  2. 6.2 alias/hosting_alias.module \hosting_alias_automatic_aliases()
  3. 7.4 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 528
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;
}