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

Diff of /contributions/modules/type_local_nids/type_local_nids.module

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

revision 1.1.2.4, Tue Sep 22 17:28:00 2009 UTC revision 1.1.2.5, Tue Sep 22 17:57:19 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: type_local_nids.module,v 1.1.2.3 2009/04/25 21:21:50 jbrown Exp $  // $Id: type_local_nids.module,v 1.1.2.4 2009/09/22 17:28:00 jbrown Exp $
3    
4    
5  function _type_local_nids_get_lnid(&$node) {  function _type_local_nids_get_lnid(&$node) {
# Line 35  function _type_local_nids_get_lnid(&$nod Line 35  function _type_local_nids_get_lnid(&$nod
35          }          }
36          else {          else {
37                  db_query("                  db_query("
38                          INSERT INTO {node_lnid_next}        INSERT INTO {node_lnid_next} (type, next_lnid)
39                          SET type = '%s',        VALUES ('%s', 2)
                         next_lnid = 2  
40                  ",                  ",
41                          $node->type                          $node->type
42                  );                  );
# Line 46  function _type_local_nids_get_lnid(&$nod Line 45  function _type_local_nids_get_lnid(&$nod
45          }          }
46    
47          db_query("          db_query("
48                  INSERT INTO {node_lnid}      INSERT INTO {node_lnid} (nid, lnid)
49                  SET nid = %d,      VALUES (%d, %d)
                         lnid = %d  
50          ",          ",
51                  $node->nid,                  $node->nid,
52                  $node->lnid                  $node->lnid

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2