diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-30 07:45:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-30 07:45:20 +0000 |
commit | 9e94bb610136ceb8cfedf2cc139c4b34ed7a46c4 (patch) | |
tree | 176d85b021b3d0b64d96a7a227d6508168002fdb /modules/user/user.module | |
parent | 630277cc89546d8ba913bfec0a6bb3daedd4fe47 (diff) | |
download | brdo-9e94bb610136ceb8cfedf2cc139c4b34ed7a46c4.tar.gz brdo-9e94bb610136ceb8cfedf2cc139c4b34ed7a46c4.tar.bz2 |
- Patch #130366 by webchick and steven: improved signature handling. Step 1 of 2.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 15 |
1 files changed, 15 insertions, 0 deletions
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); |