From 80e02e6e731d729eacf9ee5a861c8d23ef0157b8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 3 Dec 2005 19:39:15 +0000 Subject: - Patch #36434 by assimonds: fixed problem with editing signatures. --- modules/comment.module | 12 ++++++++++-- modules/comment/comment.module | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index 368bc94c1..e34b4b610 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -298,8 +298,16 @@ 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, '#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.')); + $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['signature'], + '#description' => t('Your signature will be publicly displayed at the end of your comments.')); return $form; } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 368bc94c1..e34b4b610 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -298,8 +298,16 @@ 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, '#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.')); + $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['signature'], + '#description' => t('Your signature will be publicly displayed at the end of your comments.')); return $form; } -- cgit v1.2.3