summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment.module4
-rw-r--r--modules/comment/comment.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 08afd3c18..daa14b9e5 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -138,10 +138,10 @@ function comment_settings() {
function comment_user($type, $edit, &$user) {
switch ($type) {
- case "edit":
+ case 'edit':
// when user tries to edit his own data
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 "edit":
+ case 'validate':
// validate user data editing
return array("signature" => $edit["signature"]);
}
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 08afd3c18..daa14b9e5 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -138,10 +138,10 @@ function comment_settings() {
function comment_user($type, $edit, &$user) {
switch ($type) {
- case "edit":
+ case 'edit':
// when user tries to edit his own data
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 "edit":
+ case 'validate':
// validate user data editing
return array("signature" => $edit["signature"]);
}