Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.57
diff -u -F^f -r1.57 module.inc
--- includes/module.inc	9 Sep 2004 05:51:08 -0000	1.57
+++ includes/module.inc	2 Oct 2004 02:33:56 -0000
@@ -216,10 +216,10 @@ function module_hook($module, $hook) {
  * @return
  *   The return value of the hook implementation.
  */
-function module_invoke($module, $hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL) {
+function module_invoke($module, $hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL, $a5 = NULL) {
   $function = $module .'_'. $hook;
   if (function_exists($function)) {
-    return $function($a1, $a2, $a3, $a4);
+    return $function($a1, $a2, $a3, $a4, $a5);
   }
 }
 
@@ -234,10 +234,10 @@ function module_invoke($module, $hook, $
  *   An array of return values of the hook implementations. If modules return
  *   arrays from their implementations, those are merged into one array.
  */
-function module_invoke_all($hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL) {
+function module_invoke_all($hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL, $a5 = NULL) {
   $return = array();
   foreach (module_list() as $module) {
-    $result = module_invoke($module, $hook, $a1, $a2, $a3, $a4);
+    $result = module_invoke($module, $hook, $a1, $a2, $a3, $a4, $a5);
     if (is_array($result)) {
       $return = array_merge($return, $result);
     }
Index: modules/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter.module,v
retrieving revision 1.39
diff -u -F^f -r1.39 filter.module
--- modules/filter.module	28 Sep 2004 19:13:03 -0000	1.39
+++ modules/filter.module	2 Oct 2004 02:33:56 -0000
@@ -568,7 +568,7 @@ function filter_list_format($format) {
 /**
  * Run all the enabled filters on a piece of text.
  */
-function check_output($text, $format = FILTER_FORMAT_DEFAULT) {
+function check_output($text, $format = FILTER_FORMAT_DEFAULT, $node = NULL) {
   if (isset($text)) {
     if ($format == FILTER_FORMAT_DEFAULT) {
       $format = variable_get('filter_default_format', 1);
@@ -592,12 +592,12 @@ function check_output($text, $format = F
 
     // Give filters the chance to escape HTML-like data such as code or formulas.
     foreach ($filters as $filter) {
-      $text = module_invoke($filter->module, 'filter', 'prepare', $filter->delta, $format, $text);
+      $text = module_invoke($filter->module, 'filter', 'prepare', $filter->delta, $format, $text, $node);
     }
 
     // Perform filtering.
     foreach ($filters as $filter) {
-      $text = module_invoke($filter->module, 'filter', 'process', $filter->delta, $format, $text);
+      $text = module_invoke($filter->module, 'filter', 'process', $filter->delta, $format, $text, $node);
     }
 
     // Store in cache with a minimum expiration time of 1 day.
Index: modules/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node.module,v
retrieving revision 1.404
diff -u -F^f -r1.404 node.module
--- modules/node.module	28 Sep 2004 19:13:03 -0000	1.404
+++ modules/node.module	2 Oct 2004 02:33:57 -0000
@@ -520,10 +520,10 @@ function node_view($node, $teaser = FALS
 function node_prepare($node, $teaser = FALSE) {
   $node->readmore = (strlen($node->teaser) < strlen($node->body));
   if ($teaser == FALSE) {
-    $node->body = check_output($node->body, $node->format);
+    $node->body = check_output($node->body, $node->format, $node);
   }
   else {
-    $node->teaser = check_output($node->teaser, $node->format);
+    $node->teaser = check_output($node->teaser, $node->format, $node);
   }
   return $node;
 }
