You are here

function _hosting_node_link in Hosting 5

Same name and namespace in other branches
  1. 6.2 hosting.module \_hosting_node_link()
  2. 7.4 hosting.module \_hosting_node_link()
  3. 7.3 hosting.module \_hosting_node_link()
12 calls to _hosting_node_link()
hosting_client_user_form in client/hosting_client.access.inc
hosting_client_user_view in client/hosting_client.access.inc
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().
hosting_set_breadcrumb in ./hosting.module
Generate context sensitive breadcrumbs

... See full list

4 string references to '_hosting_node_link'
hosting_client_list in client/hosting_client.module
hosting_db_server_hosting_summary in db_server/hosting_db_server.module
hosting_platform_hosting_summary in platform/hosting_platform.module
hosting_web_server_hosting_summary in web_server/hosting_web_server.module

File

./hosting.module, line 213
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);
  }
}