2 // $Id: casetracker_views_handler_field_project_name.inc,v 1.1 2009/02/09 23:22:58 jmiccolis Exp $
5 * Field handler to show Selective state.
7 * @ingroup views_field_handlers
9 class casetracker_views_handler_field_project_name extends views_handler_field {
11 function render($values) {
12 $node = db_fetch_object(db_query(db_rewrite_sql("SELECT n.nid, n.title FROM {node} n WHERE n.nid = %d"), $values->casetracker_case_pid));
14 return l($node->title, "node/$node->nid");
15 } // returns a linked case tracker project title.