Index: wordfilter.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wordfilter/wordfilter.install,v
retrieving revision 1.4
diff -u -p -r1.4 wordfilter.install
--- wordfilter.install	19 Jun 2007 12:13:44 -0000	1.4
+++ wordfilter.install	20 Apr 2008 12:10:15 -0000
@@ -45,8 +45,19 @@ function wordfilter_update_2() {
 }
 
 /**
+ * Update to lower module weight so that wordfiltering
+ * can occur before other modules can run hook_nodeapi
+ * and hook_comment
+ */
+function wordfilter_update_3() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE {system} SET weight = -1 WHERE name = '%s' AND type = '%s'", 'wordfilter', 'module');
+  return $ret;
+}
+
+/**
  * Implementation of hook_uninstall().
  */
 function wordfilter_uninstall() {
   db_query('DROP TABLE {wordfilter}');
-}
\ No newline at end of file
+}
