You are here

function _hosting_node_link in Hostmaster (Aegir) 6

11 calls to _hosting_node_link()
hosting_client_user_form in modules/hosting/client/hosting_client.access.inc
Add items to the user forms when editing or registering.
hosting_client_user_view in modules/hosting/client/hosting_client.access.inc
Add visible items when viewing a user().
hosting_platform_listing in modules/hosting/platform/hosting_platform.module
Simple list for top level navigation.
hosting_platform_post_hosting_verify_task in modules/hosting/platform/hosting_platform.drush.inc
Implementation hook_post_verify().
hosting_platform_view in modules/hosting/platform/hosting_platform.module
Implementation of hook_view().

... See full list

6 string references to '_hosting_node_link'
hostingService_dns_master::view in modules/hosting/dns/hosting_dns.service.inc
hostingService_http_cluster::view in modules/hosting/web_cluster/hosting_web_cluster.service.inc
hostingService_http_pack::view in modules/hosting/web_pack/hosting_web_pack.service.inc
hosting_client_list in modules/hosting/client/hosting_client.module
Make a themed list of clients.
hosting_platform_hosting_summary in modules/hosting/platform/hosting_platform.module
Implementation of hook_hosting_summary().

... See full list

File

modules/hosting/hosting.module, line 322
Hosting module.

Code

function _hosting_node_link($nid, $title = null) {
  if (is_null($nid)) {
    return t("None");
  }
  $node = node_load($nid);
  $title = !is_null($title) ? $title : filter_xss($node->title);
  if ($node->nid) {
    return node_access('view', $node) ? l($title, "node/" . $node->nid) : filter_xss($node->title);
  }
}