:100644 100644 df45ee6... 0000000... M	sites/all/modules/patched/taxonomy_node/taxonomynode.module

diff --git a/sites/all/modules/patched/taxonomy_node/taxonomynode.module b/sites/all/modules/patched/taxonomy_node/taxonomynode.module
index df45ee6..c9c138b 100644
--- a/sites/all/modules/patched/taxonomy_node/taxonomynode.module
+++ b/sites/all/modules/patched/taxonomy_node/taxonomynode.module
@@ -471,4 +471,28 @@ function taxonomynode_settings() {
   );
 
   return system_settings_form($form);
-}
\ No newline at end of file
+}
+
+/**
+ * Implementation of hook_token_list()
+ */
+function taxonomynode_token_list($type = 'all') {
+  $tokens = array();
+  if ($type == 'node' || $type == 'all') {
+    $tokens['node']['taxonomynode-tid'] = t('The ID of the taxonomy term that is linked to this node by Taxonomy Node');
+  }
+  return $tokens;
+}
+
+/**
+ * Implementation of hook_token_values()
+ */
+function taxonomynode_token_values($type, $object = NULL, $options = array()) {
+  $values = array();
+  if ($type == 'node') {
+    if ($tid = _taxonomynode_get_tid_from_nid($object->nid)) {
+      $values['taxonomynode-tid'] = $tid;
+    }
+  }
+  return $values;
+}
