### Eclipse Workspace Patch 1.0
#P term_fields
Index: term_fields.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/term_fields/term_fields.module,v
retrieving revision 1.7
diff -u -r1.7 term_fields.module
--- term_fields.module	11 Jun 2009 06:10:27 -0000	1.7
+++ term_fields.module	14 Jul 2009 00:46:24 -0000
@@ -102,6 +102,19 @@
 					
 					// some values are going to be conditional based on the data type
 					switch ($attribute['type']) {
+            case 'nodereference':
+              $query = db_query('SELECT nid, title FROM {node}');
+              $nodes = array();
+              while($row = db_fetch_array($query)) {
+                $nodes[$row['nid']] = $row['title'] .' ('. $row['nid'] .')';
+              }
+              $nodes = array('' => '') + $nodes;
+              $form['fields'][$fid] = array(
+                 '#type' => 'select',
+                 '#options' => $nodes,
+                 '#default_value' => $value || $value == 0 ? $value : NULL,
+              );
+              break;
 						case 'textfield':
 							$form['fields'][$fid] = array(
 								'#type' => $attribute['type'],
Index: term_fields.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/term_fields/term_fields.admin.inc,v
retrieving revision 1.4
diff -u -r1.4 term_fields.admin.inc
--- term_fields.admin.inc	11 Jun 2009 06:10:27 -0000	1.4
+++ term_fields.admin.inc	14 Jul 2009 00:46:24 -0000
@@ -71,6 +71,7 @@
 			'#type' => 'radios',
 			'#title' => t('Type'),
 			'#options' => array(
+				'nodereference' => t('Node reference'),
 				'textfield' => t('Single row textbox'),
 				'textarea' => t('Multi-row textarea'),
 				'numeric' => t('Numeric'),
@@ -137,6 +138,7 @@
 			$data_type = 'LONGTEXT';
 			break;
 		case 'numeric':
+		case 'nodereference':
 		case 'file':
 			$data_type = 'INT';
 			break;
