bratsun
9/2/2014 - 12:29 PM

Get node title without loading the whole node object

Get node title without loading the whole node object

function get_node_title($nid) {
  return db_query('SELECT title FROM {node} WHERE nid = :nid', array(':nid' => $nid))->fetchField();
}