/[eiffelstudio]/trunk/Documentation/tools/web/trunk/drupal/sites/all/modules/isedoc/isedoc.lib.inc
ViewVC logotype

Diff of /trunk/Documentation/tools/web/trunk/drupal/sites/all/modules/isedoc/isedoc.lib.inc

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

revision 74721 by jfiat, Thu Sep 18 10:17:15 2008 UTC revision 74722 by jfiat, Thu Sep 18 10:41:37 2008 UTC
# Line 107  function isedoc_book_get_books() { Line 107  function isedoc_book_get_books() {
107  }  }
108    
109  function isedoc_node_ids_by_uuid($uuid) {  function isedoc_node_ids_by_uuid($uuid) {
110          $sql = "SELECT nid FROM {content_type_".'doc'."} WHERE LOWER(field_uuid_value) = LOWER('%s')";          $sql = "SELECT nid, vid FROM {content_type_".'doc'."} WHERE LOWER(field_uuid_value) = LOWER('%s')";
111          $res = db_query($sql, $uuid);          $res = db_query($sql, $uuid);
112          if ($res === FALSE) {          if ($res === FALSE) {
113                  return FALSE;                  return FALSE;
114          } else {          } else {
115                  $nids = array();                  $nids = array();
116                  while ($v = db_fetch_array($res)) {                  while ($v = db_fetch_array($res)) {
117                          drupal_set_message("v=".$v['nid']);                          $nid = $v['nid'];
118                          $nids[] = $v['nid'];                          $vid = $v['vid'];
119                            //drupal_set_message("nid=$nid; v=$vid");
120                            $nids[$nid] = $vid;
121                  }                  }
122                  return $nids;                  return $nids;
123          }          }

Legend:
Removed from v.74721  
changed lines
  Added in v.74722

  ViewVC Help
Powered by ViewVC 1.1.23