summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/block/block.module3
-rw-r--r--modules/comment/comment.module3
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/block/block.module b/modules/block/block.module
index 0a915b7be..fe112f371 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -565,6 +565,9 @@ function block_box_form($edit = array()) {
'#description' => t('The content of the block as shown to the user.'),
'#weight' => -17,
);
+ if (!isset($edit['format'])) {
+ $edit['format'] = FILTER_FORMAT_DEFAULT;
+ }
$form['body_filter']['format'] = filter_form($edit['format'], -16);
$form['submit'] = array('#type' => 'submit', '#value' => t('Save block'));
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index b47ace8f8..e161e9201 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1389,6 +1389,9 @@ function comment_form($edit, $title = NULL) {
}
$form['comment_filter']['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE);
+ if (!isset($edit['format'])) {
+ $edit['format'] = FILTER_FORMAT_DEFAULT;
+ }
$form['comment_filter']['format'] = filter_form($edit['format']);
$form['cid'] = array('#type' => 'value', '#value' => $edit['cid']);