diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-03 19:39:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-03 19:39:15 +0000 |
commit | 80e02e6e731d729eacf9ee5a861c8d23ef0157b8 (patch) | |
tree | 2ddae318a1f25954453671428e366a7d91955efa | |
parent | 4b9cd4fcd65372b196dafd2809467bf03515c894 (diff) | |
download | brdo-80e02e6e731d729eacf9ee5a861c8d23ef0157b8.tar.gz brdo-80e02e6e731d729eacf9ee5a861c8d23ef0157b8.tar.bz2 |
- Patch #36434 by assimonds: fixed problem with editing signatures.
-rw-r--r-- | modules/comment.module | 12 | ||||
-rw-r--r-- | modules/comment/comment.module | 12 |
2 files changed, 20 insertions, 4 deletions
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; } |