- Patch #9046 by asimmonds: comment signature option was not displayed.
parent
ac27d4bf81
commit
4bbc277881
|
@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue