diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-26 10:29:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-26 10:29:26 +0000 |
commit | 7c36ac0e493601ffa726590961c004d5b72bc2cc (patch) | |
tree | 860ecff34a04ad91d0c44cc76543f33a5b858cf1 /modules/comment/comment.module | |
parent | 3ea6bed4cf1f4b8691dcd2200f9d5be1a31a8d34 (diff) | |
download | brdo-7c36ac0e493601ffa726590961c004d5b72bc2cc.tar.gz brdo-7c36ac0e493601ffa726590961c004d5b72bc2cc.tar.bz2 |
- Patch #428296 by dropcube, sun, catch: filter system doesn't communicate with other modules about filter format changes/deletions.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index d63fd3c29..afdc87d62 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2442,3 +2442,14 @@ function comment_menu_alter(&$items) { // Add comments to the description for admin/content. $items['admin/content']['description'] = "View, edit, and delete your site's content and comments."; } + +/** + * Implement hook_filter_format_delete(). + */ +function comment_filter_format_delete($format, $default) { + db_update('comment') + ->fields(array('format' => $default->format)) + ->condition('format', $format->format) + ->execute(); +} + |