You are here

function reviews_get_node_title in Reviews 7

Helper function to return a node title from a node ID.

2 calls to reviews_get_node_title()
reviews_list in includes/reviews.admin.inc
Form builder for reviews moderation.
reviews_moderation in includes/reviews.admin.inc
Form builder for reviews moderation.

File

includes/reviews.api.inc, line 91
This file contains API functions for the reviews system.

Code

function reviews_get_node_title($nid) {
  $node = node_load($nid);
  if ($node) {
    return $node->title;
  }
  else {
    return 'Unknown';
  }
}