diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-31 21:16:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-31 21:16:42 +0000 |
commit | 48a4dff89750be86a64cccf0ce6ab76e58957351 (patch) | |
tree | fc6cfb7b91b67a97ef049ed91682cb97fb2a359b | |
parent | 294286687a9ea1a327469e25580f5836106ab61f (diff) | |
download | brdo-48a4dff89750be86a64cccf0ce6ab76e58957351.tar.gz brdo-48a4dff89750be86a64cccf0ce6ab76e58957351.tar.bz2 |
- Patch by Goba: added form descriptions where appropriate and removed some
duplicated code from the comment module.
-rw-r--r-- | modules/comment.module | 6 | ||||
-rw-r--r-- | modules/comment/comment.module | 6 | ||||
-rw-r--r-- | modules/forum.module | 4 | ||||
-rw-r--r-- | modules/forum/forum.module | 4 | ||||
-rw-r--r-- | modules/page.module | 2 | ||||
-rw-r--r-- | modules/page/page.module | 2 |
6 files changed, 8 insertions, 16 deletions
diff --git a/modules/comment.module b/modules/comment.module index 09d8e3d43..677d1b263 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -139,10 +139,6 @@ function comment_settings() { function comment_user($type, $edit, &$user) { switch ($type) { case "view_public": - if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature)); - } - break; case "view_private": if ($user->signature) { return form_item(t("Signature"), check_output($user->signature)); @@ -909,7 +905,7 @@ function comment_admin_edit($id) { if ($comment) { $form .= form_item(t("Author"), format_name($comment)); $form .= form_textfield(t("Subject"), "subject", $comment->subject, 70, 128); - $form .= form_textarea(t("Comment"), "comment", $comment->comment, 70, 15); + $form .= form_textarea(t("Comment"), "comment", $comment->comment, 70, 15, filter_tips_short()); $form .= form_radios(t("Status"), "status", $comment->status, array("published", "not published")); $form .= form_hidden("cid", $id); $form .= form_submit(t("Submit")); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 09d8e3d43..677d1b263 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -139,10 +139,6 @@ function comment_settings() { function comment_user($type, $edit, &$user) { switch ($type) { case "view_public": - if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature)); - } - break; case "view_private": if ($user->signature) { return form_item(t("Signature"), check_output($user->signature)); @@ -909,7 +905,7 @@ function comment_admin_edit($id) { if ($comment) { $form .= form_item(t("Author"), format_name($comment)); $form .= form_textfield(t("Subject"), "subject", $comment->subject, 70, 128); - $form .= form_textarea(t("Comment"), "comment", $comment->comment, 70, 15); + $form .= form_textarea(t("Comment"), "comment", $comment->comment, 70, 15, filter_tips_short()); $form .= form_radios(t("Status"), "status", $comment->status, array("published", "not published")); $form .= form_hidden("cid", $id); $form .= form_submit(t("Submit")); diff --git a/modules/forum.module b/modules/forum.module index 7ebfacb07..516da7df5 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -218,7 +218,7 @@ function forum_form(&$node, &$error) { $output .= form_checkbox(t("Leave shadow copy"), "shadow", 1, $node->shadow, t("If you move this topic, you can leave a link in the old forum to the new forum.")); } - $output .= form_textarea(t("Body"), "body", $node->body, 60, 10); + $output .= form_textarea(t("Body"), "body", $node->body, 60, 10, filter_tips_short()); return $output; } @@ -288,7 +288,7 @@ function forum_get_forums($tid = 0) { else { $forums = unserialize($cache->data); } - + return $forums; } diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 7ebfacb07..516da7df5 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -218,7 +218,7 @@ function forum_form(&$node, &$error) { $output .= form_checkbox(t("Leave shadow copy"), "shadow", 1, $node->shadow, t("If you move this topic, you can leave a link in the old forum to the new forum.")); } - $output .= form_textarea(t("Body"), "body", $node->body, 60, 10); + $output .= form_textarea(t("Body"), "body", $node->body, 60, 10, filter_tips_short()); return $output; } @@ -288,7 +288,7 @@ function forum_get_forums($tid = 0) { else { $forums = unserialize($cache->data); } - + return $forums; } diff --git a/modules/page.module b/modules/page.module index b45319e8f..a4fad9a24 100644 --- a/modules/page.module +++ b/modules/page.module @@ -127,7 +127,7 @@ function page_form(&$node, &$error) { $output .= implode("", taxonomy_node_form("page", $node)); } - $output .= form_textarea(t("Body"), "body", $node->body, 60, 20); + $output .= form_textarea(t("Body"), "body", $node->body, 60, 20, filter_tips_short()); $output .= form_textfield(t("Link name"), "link", $node->link, 60, 64, t("To make the page show up in the navigation links, enter the name of the link, otherwise leave blank.")); $output .= form_textfield(t("Link description"), "description", $node->description, 60, 64, t("The description displayed when hovering over the page's link. Leave blank when you don't want a description.")); $output .= form_radios(t("Type"), "format", $node->format, array(0 => "HTML", 1 => "PHP")); diff --git a/modules/page/page.module b/modules/page/page.module index b45319e8f..a4fad9a24 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -127,7 +127,7 @@ function page_form(&$node, &$error) { $output .= implode("", taxonomy_node_form("page", $node)); } - $output .= form_textarea(t("Body"), "body", $node->body, 60, 20); + $output .= form_textarea(t("Body"), "body", $node->body, 60, 20, filter_tips_short()); $output .= form_textfield(t("Link name"), "link", $node->link, 60, 64, t("To make the page show up in the navigation links, enter the name of the link, otherwise leave blank.")); $output .= form_textfield(t("Link description"), "description", $node->description, 60, 64, t("The description displayed when hovering over the page's link. Leave blank when you don't want a description.")); $output .= form_radios(t("Type"), "format", $node->format, array(0 => "HTML", 1 => "PHP")); |