Index: type_local_nids.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/type_local_nids/type_local_nids.module,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 type_local_nids.module
--- type_local_nids.module	25 Mar 2008 03:51:40 -0000	1.1.2.1
+++ type_local_nids.module	30 Mar 2008 13:49:50 -0000
@@ -117,6 +117,20 @@
 }
 
 
+/*
+ * Implementation of hook_form_alter()
+ */
+function type_local_nids_form_alter(&$form, $form_state, $form_id) {
+
+  if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] .'_node_form' == $form_id) {
+    $node = $form['#node'];
+    $form['lnid'] = array(
+      '#type' => 'value',
+      '#value' => $node->lnid,
+    );
+  }
+}
+
 function type_local_nids_token_values($type, $object = NULL, $options = array()) {
 
   if($type == 'node') {

