You are here

function support_pm_project_load_nid in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support_pm/support_pm.module \support_pm_project_load_nid()
2 calls to support_pm_project_load_nid()
support_pm_comment in support_pm/support_pm.module
support_pm_nodeapi in support_pm/support_pm.module
Implementation of hook_nodeapi().


support_pm/support_pm.module, line 1014
Support Project Management. @author Jeremy Andrews <> @package Support


function support_pm_project_load_nid($nid) {
  static $projects = array();
  if (!isset($projects[$nid])) {
    $projects[$nid] = db_fetch_object(db_query('SELECT * FROM {support_project_ticket} spt LEFT JOIN {support_project} sp ON spt.projid = sp.projid WHERE spt.nid = %d', $nid));
    drupal_alter('support_pm_project_load_nid', $projects[$nid]);
  return $projects[$nid];