Index: wordfilter.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wordfilter/wordfilter.install,v retrieving revision 1.4.2.1.2.6 diff -b -u -p -r1.4.2.1.2.6 wordfilter.install --- wordfilter.install 2 Apr 2010 18:39:11 -0000 1.4.2.1.2.6 +++ wordfilter.install 2 Apr 2010 18:39:57 -0000 @@ -1,5 +1,5 @@ array( 'description' => 'The replacement word to filter with.', - 'type' => 'varchar', - 'length' => 255, + 'type' => 'text', 'not null' => TRUE, - 'default' => '', ), 'language' => array( 'description' => 'The {languages}.language of this word to filter.', @@ -100,6 +98,18 @@ function wordfilter_update_6100() { } /** + * Implementation of hook_update_N(). + * + * Update function to change the column type of the replacement + * field from VARCHAR to TEXT to match the words field. + */ +function wordfilter_update_6101() { + $ret = array(); + db_change_field($ret, 'wordfilter', 'replacement', 'replacement', array('type' => 'text', 'not null' => TRUE)); + return $ret; +} + +/** * Implementation of hook_uninstall(). */ function wordfilter_uninstall() {