diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-12 11:26:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-12 11:26:16 +0000 |
commit | aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b (patch) | |
tree | 4a022207fea4b4d7a4a48a6ac20099c3b38e0629 /modules/comment.module | |
parent | 64a617c208c02b6360d16d0960eebc67839d4dc8 (diff) | |
download | brdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.gz brdo-aeed4cd8e4814bb0ed8ad06d581a95b82e2d718b.tar.bz2 |
- Patch #35644 by webchick: forms API simplificiations.
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module index b0d09c7ea..f98b94ee9 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -249,8 +249,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) { function comment_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { // when user tries to edit his own data - $form['comment_settings'] = array('#type' => 'fieldset', '#title' => t('Comment settings'), '#collapsible' => TRUE, '#collapsed' => FALSE, '#weight' => 4); - $form['comment_settings']['signature'] = array('#type' => 'textarea', '#title' => t('Signature'), '#default_value' => $edit['comment_settings']['signature'], '#cols' => 60, '#rows' => 5, '#description' => ('Your signature will be publicly displayed at the end of your comments.')); + $form['comment_settings'] = array('#type' => 'fieldset', '#title' => t('Comment settings'), '#collapsible' => TRUE, '#weight' => 4); + $form['comment_settings']['signature'] = array('#type' => 'textarea', '#title' => t('Signature'), '#default_value' => $edit['comment_settings']['signature'], '#description' => ('Your signature will be publicly displayed at the end of your comments.')); return $form; } @@ -1108,10 +1108,10 @@ function comment_form($edit, $title = NULL) { } if (variable_get('comment_subject_field', 1) == 1) { - $form['subject'] = array('#type' => 'textfield', '#title' => t('Subject'), '#size' => 60, '#maxlength' => 64, '#default_value' => $edit['subject']); + $form['subject'] = array('#type' => 'textfield', '#title' => t('Subject'), '#maxlength' => 64, '#default_value' => $edit['subject']); } - $form['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#cols' => 60, '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE + $form['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE ); $form = array_merge($form, filter_form($node->format)); |