- Patch #9046 by asimmonds: comment signature option was not displayed.

4.5.x
Dries Buytaert 2004-07-05 05:42:06 +00:00
parent ac27d4bf81
commit 4bbc277881
2 changed files with 16 additions and 16 deletions

View File

@ -138,14 +138,14 @@ function comment_configure() {
* *
* Provides signature customization for the user's comments. * Provides signature customization for the user's comments.
*/ */
function comment_user($type, $edit, &$user) { function comment_user($type, $edit, &$user, $category = NULL) {
switch ($type) { if ($type == 'form' && $category == 'account') {
case 'edit': // when user tries to edit his own data
// when user tries to edit his own data return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.') .'<br />'. filter_tips_short()), 'weight' => 2));
return array(t('Personal information') => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.') .'<br />'. filter_tips_short())); }
case 'validate': if ($type == 'validate') {
// validate user data editing // validate user data editing
return array('signature' => $edit['signature']); return array('signature' => $edit['signature']);
} }
} }

View File

@ -138,14 +138,14 @@ function comment_configure() {
* *
* Provides signature customization for the user's comments. * Provides signature customization for the user's comments.
*/ */
function comment_user($type, $edit, &$user) { function comment_user($type, $edit, &$user, $category = NULL) {
switch ($type) { if ($type == 'form' && $category == 'account') {
case 'edit': // when user tries to edit his own data
// when user tries to edit his own data return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.') .'<br />'. filter_tips_short()), 'weight' => 2));
return array(t('Personal information') => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.') .'<br />'. filter_tips_short())); }
case 'validate': if ($type == 'validate') {
// validate user data editing // validate user data editing
return array('signature' => $edit['signature']); return array('signature' => $edit['signature']);
} }
} }