--- C:\Documents and Settings\Aldo\Local Settings\Temp\TCV1972.tmp\taxonomy_forceall.1.1.module	Wed Mar 21 10:58:45 2007
+++ D:\drupal cvs\5.x\contributions\modules\taxonomy_forceall\taxonomy_forceall.module	Wed Mar 21 10:55:44 2007
@@ -1,17 +1,14 @@
-<?php
-// $Id: taxonomy_forceall.module,v 1.1 2007/03/02 21:32:38 aymerick Exp $
-
-/**
- * Implementation of hook_init().
- */
-function taxonomy_forceall_init() {
-  $arguments = explode('/', $_GET['q']);
-  if ((count($arguments) > 2) &&
-      ($arguments[0] == 'taxonomy') &&
-      ($arguments[1] == 'term') &&
-      ($arguments[count($arguments) - 1] != 'all'))
-  {
-    $_GET['q'] = $_GET['q'] . '/all';
-  }
-}
-?>
+<?php
+// $Id: taxonomy_forceall.module,v 1.1 2007/03/02 21:32:38 aymerick Exp $
+
+/**
+ * Implementation of hook_link_alter().
+ */
+function taxonomy_forceall_link_alter(&$node, &$links) {
+  foreach ($links AS $module => $link) {
+    if (strstr($module, 'taxonomy_term') && preg_match('/^taxonomy\/term\/\d*$/',$link['href'])) {
+      $links[$module]['href'] = $link['href'].'/all';
+    }
+  }
+}
+?>
