diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-05 02:36:02 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-05 02:36:02 +0000 |
commit | 208090eeb00edf3715a3f1b8cd38576e6d26bfdd (patch) | |
tree | 088ffe69d8b40c748c4497c14a7af08595dfebd8 /modules | |
parent | 99d07eedc0563238ef79d8e4da742ff71b07b067 (diff) | |
download | brdo-208090eeb00edf3715a3f1b8cd38576e6d26bfdd.tar.gz brdo-208090eeb00edf3715a3f1b8cd38576e6d26bfdd.tar.bz2 |
#82336 by jvandyk. Set the default input format if we don't have one.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block/block.module | 3 | ||||
-rw-r--r-- | modules/comment/comment.module | 3 |
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']); |