From 208090eeb00edf3715a3f1b8cd38576e6d26bfdd Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 5 Sep 2006 02:36:02 +0000 Subject: #82336 by jvandyk. Set the default input format if we don't have one. --- modules/block/block.module | 3 +++ modules/comment/comment.module | 3 +++ 2 files changed, 6 insertions(+) (limited to 'modules') 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']); -- cgit v1.2.3