Index: link.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/link/link.module,v
retrieving revision 1.24
diff -u -r1.24 link.module
--- link.module	31 Mar 2008 06:50:42 -0000	1.24
+++ link.module	31 Mar 2008 07:52:38 -0000
@@ -674,6 +674,30 @@
   $query->add_where(implode(' '. $filter['operator'] .' ', $where_conditions));
 }
 
+function link_token_list($type = 'all') {
+  if ($type == 'field' || $type == 'all') {
+    $tokens = array();
+
+    $tokens['link']['url'] = t("Link URL");
+    $tokens['link']['title'] = t("Link title");
+    $tokens['link']['view'] = t("Formatted html link");
+
+    return $tokens;
+  }
+}
+
+function link_token_values($type, $object = NULL) {
+  if ($type == 'field') {
+    $item = $object[0];
+
+    $tokens['url'] = $item['url'];
+    $tokens['title'] = $item['title'];
+    $tokens['view'] = $item['view'];
+
+    return $tokens;
+  }
+}
+
 /**
  * Forms a valid URL if possible from an entered address.
  * Trims whitespace and automatically adds an http:// to addresses without a protocol specified
