You are here

function hosting_site_canonical_url in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 site/hosting_site.module \hosting_site_canonical_url()

Get a site's canonical URL.

8 calls to hosting_site_canonical_url()
hosting_site_field_handler_canonical::render in site/includes/views/handlers/hosting_site_handler_field_canonical.inc
Render the field.
hosting_site_preprocess in site/hosting_site.module
Theme function for site titles.
hosting_site_view in site/hosting_site.nodeapi.inc
Implements hook_view().
hosting_task_migrate_form in migrate/hosting_migrate.module
Implements hook_form().
hosting_task_set_title in task/hosting_task.module
Set the title of tasks automatically and in a consistent way.

... See full list

File

site/hosting_site.module, line 287
Contains hook implementations for Hosting site module.

Code

function hosting_site_canonical_url($node) {

  # Use the redirection target, if it's available.

  # Default to the site title, otherwise.
  $url = isset($node->redirection) && $node->redirection ? $node->redirection : $node->title;
  return hosting_site_clean_domain($url);
}