function _hosting_node_link in Hosting 6.2
Same name and namespace in other branches
- 5 hosting.module \_hosting_node_link()
- 7.4 hosting.module \_hosting_node_link()
- 7.3 hosting.module \_hosting_node_link()
10 calls to _hosting_node_link()
- hosting_client_user_form in client/
hosting_client.access.inc - Add items to the user forms when editing or registering.
- hosting_client_user_view in client/
hosting_client.access.inc - Add visible items when viewing a user().
- hosting_platform_listing in platform/
hosting_platform.module - Simple list for top level navigation.
- hosting_platform_post_hosting_verify_task in platform/
hosting_platform.drush.inc - Implementation hook_post_verify().
- hosting_platform_view in platform/
hosting_platform.module - Implementation of hook_view().
6 string references to '_hosting_node_link'
- hostingService_dns_master::view in dns/
hosting_dns.service.inc - hostingService_http_cluster::view in web_cluster/
hosting_web_cluster.service.inc - hostingService_http_pack::view in web_pack/
hosting_web_pack.service.inc - hosting_client_list in client/
hosting_client.module - Make a themed list of clients.
- hosting_platform_hosting_summary in platform/
hosting_platform.module - Implementation of hook_hosting_summary().
File
- ./
hosting.module, line 373 - 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);
}
}