/[drupal]/contributions/modules/pacs/pacs.module
ViewVC logotype

Diff of /contributions/modules/pacs/pacs.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3, Mon Jun 12 14:11:43 2006 UTC revision 1.3.2.1, Tue Jun 13 18:51:20 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: pacs.module,v 1.3 2006/06/12 14:11:43 peterone Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 56  function pacs_node($nid,$rid = 0) { Line 56  function pacs_node($nid,$rid = 0) {
56        $res = db_query($sql,$nid,$gids);        $res = db_query($sql,$nid,$gids);
57      }      }
58      $grs = db_fetch_array($res);      $grs = db_fetch_array($res);
59      $std = array('nid' => 0, 'pid' => NULL, 'type' => 'root', 'title' => t('root'), 'stops' => array());      $nde = array('nid' => 0, 'pid' => NULL, 'type' => 'root', 'title' => t('root'), 'stops' => array());
60      $nde = array_merge($std,$grs);      if (isset($grs)) $nde = array_merge($nde,$grs);
61    }    }
62    $nde['rid'] = $rid;    $nde['rid'] = $rid;
63    if (($rid == 0) && ($user->uid == 1)) { $nde['gv'] = 1;  $nde['gu'] = 1;  $nde['gm'] = 1; }    if (($rid == 0) && ($user->uid == 1)) { $nde['gv'] = 1;  $nde['gu'] = 1;  $nde['gm'] = 1; }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

  ViewVC Help
Powered by ViewVC 1.1.2