? Kopie von token.module
? token-profile-support.patch
? token-recursive-merge.patch
Index: token.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token.module,v
retrieving revision 1.5.2.4
diff -u -r1.5.2.4 token.module
--- token.module	16 Feb 2007 04:31:33 -0000	1.5.2.4
+++ token.module	7 Mar 2007 17:42:29 -0000
@@ -105,7 +105,7 @@
     include_once(drupal_get_path('module', 'token') . '/token_cck.inc');
   }
 
-  $full_list = module_invoke_all('token_list', $type);
+  $full_list = _token_get_list($type);
   
   $headers = array(t('Token'), t('Replacement value'));
   $rows = array();
@@ -123,6 +123,23 @@
   return $output;
 }
 
+// Internal utility function used to support recursive merging of token lists.
+function _token_get_list($type = 'all') {
+  $return = array();
+  foreach (module_implements('token_list') as $module) {
+    $function = $module .'_token_list';
+    $result = $function($type);
+    if (isset($result) && is_array($result)) {
+      foreach ($result as $category => $tokens) {
+        foreach ($tokens as $token => $title) {
+          $return[$category][$token] = $title;
+        }
+      }
+    }
+  }
+  return $return;
+}
+
 /**
  * Sample implementation of hook_token_values(). 
  *
