From 9e94bb610136ceb8cfedf2cc139c4b34ed7a46c4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 Mar 2007 07:45:20 +0000 Subject: - Patch #130366 by webchick and steven: improved signature handling. Step 1 of 2. --- modules/user/user.module | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index df04992ac..5bce664a9 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1435,6 +1435,21 @@ function user_edit_form($uid, $edit, $register = FALSE) { } } + // Signature: + if (module_exists('comment') && !$register) { + $form['signature_settings'] = array( + '#type' => 'fieldset', + '#title' => t('Signature settings'), + '#weight' => 1, + ); + $form['signature_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.'), + ); + } + // Picture/avatar: if (variable_get('user_pictures', 0) && !$register) { $form['picture'] = array('#type' => 'fieldset', '#title' => t('Picture'), '#weight' => 1); -- cgit v1.2.3