? .project
? content_token_remove.patch
Index: content.token.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/content.token.inc,v
retrieving revision 1.2
diff -u -p -r1.2 content.token.inc
--- content.token.inc	9 Apr 2008 22:41:30 -0000	1.2
+++ content.token.inc	23 Apr 2008 02:47:57 -0000
@@ -151,67 +151,3 @@ if (module_exists('userreference')) {
   }
 }
 
-/**
- * These definitions should go in the relevant modules.
- */
-if (module_exists('link')) {
-  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;
-    }
-  }
-}
-
-if (module_exists('imagefield')) {
-  function imagefield_token_list($type = 'all') {
-    if ($type == 'field' || $type == 'all') {
-      $tokens = array();
-
-      $tokens['image']['fid']       = t("Image file ID");
-      $tokens['image']['title']     = t("Image title");
-      $tokens['image']['alt']       = t("Image alt text");
-      $tokens['image']['filename']  = t("Image file name");
-      $tokens['image']['filepath']  = t("Image path");
-      $tokens['image']['filemime']  = t("Image MIME type");
-      $tokens['image']['filesize']  = t("Image file size");
-      $tokens['image']['view']      = t("Fully formatted HTML image tag");
-
-      return $tokens;
-    }
-  }
-
-  function imagefield_token_values($type, $object = NULL) {
-    if ($type == 'field') {
-      $item = $object[0];
-
-      $tokens['fid']      = $item['fid'];
-      $tokens['title']    = $item['title'];
-      $tokens['alt']      = $item['alt'];
-      $tokens['filename'] = $item['filename'];
-      $tokens['filepath'] = $item['filepath'];
-      $tokens['filemime'] = $item['filemime'];
-      $tokens['filesize'] = $item['filesize'];
-      $tokens['view']     = $item['view'];
-
-      return $tokens;
-    }
-  }
-}
\ No newline at end of file
