summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 9aaba268f..1fb88a60a 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1814,7 +1814,7 @@ function comment_form($form, &$form_state, $comment) {
'#title' => t('Comment'),
'#rows' => 15,
'#default_value' => $default,
- '#text_format' => isset($comment->format) ? $comment->format : FILTER_FORMAT_DEFAULT,
+ '#text_format' => isset($comment->format) ? $comment->format : filter_default_format(),
'#required' => TRUE,
);
@@ -2418,9 +2418,9 @@ function comment_menu_alter(&$items) {
/**
* Implement hook_filter_format_delete().
*/
-function comment_filter_format_delete($format, $default) {
+function comment_filter_format_delete($format, $fallback) {
db_update('comment')
- ->fields(array('format' => $default->format))
+ ->fields(array('format' => $fallback->format))
->condition('format', $format->format)
->execute();
}