summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-31 19:34:03 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-31 19:34:03 +0000
commitec3326679595953650e76308daac2182b7d628b9 (patch)
tree3ab072825ef580887f42cc2355f77b064c1b320a /modules/comment.module
parentf35eb376737d9df40adb9cd1821313b98c6bda52 (diff)
downloadbrdo-ec3326679595953650e76308daac2182b7d628b9.tar.gz
brdo-ec3326679595953650e76308daac2182b7d628b9.tar.bz2
- Improvement: made it possible to disable the comment controls and reworded some of the configuration settings.
- Improvement: removed a left-over from Drupal 4.2.0 (dead code). - Improvement: replaced hard-coded XHTML around the XML icons with class="xml-icon". - Improvement: removed the custom navigation menus shown at the top of the "user information page" and integrated them in the new navigation block. The "my account" link in the navigation menu will unfold. Also removed the "delete account" link/functionality (for now). - Improvement: fix for "magic quotes" settings. Patch by Steven. I also removed check_php_settings(). - Improvement: block themability improvements. Modified patch from Ax and Steve/CodeMonkeyX. - Fixed bug #2617: editing user information does not work. Patch by Kjartan.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment.module b/modules/comment.module
index d5513965a..4f81d029f 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -123,8 +123,8 @@ function comment_settings() {
$output .= form_select(t("Default threshold"), "comment_default_threshold", variable_get("comment_default_threshold", 0), $thresholds, t("Thresholds are values below which comments are hidden. These thresholds are useful for busy sites which want to hide poor comments from most users."));
$output .= form_select(t("Preview comment"), "comment_preview", variable_get("comment_preview", 1), array(t("Optional"), t("Required")), t("Must users preview comments before submitting?"));
- $output .= form_select(t("New comment form"), "comment_new_form", variable_get("comment_new_form", 0), array(t("Disabled"), t("Enabled")), t("New comment form in the node page?"));
- $output .= form_select(t("Comment controls"), "comment_controls", variable_get("comment_controls", 0), array(t("Above comments"), t("Below comments"), t("Above and below")), t("Position of the comment controls box."));
+ $output .= form_select(t("Location of comment submission form"), "comment_form_location", variable_get("comment_form_location", 0), array(t("Display below post or comments"), t("Display on separate page")), t("The location of the comment submission form."));
+ $output .= form_select(t("Comment controls"), "comment_controls", variable_get("comment_controls", 0), array(t("Display above the comments"), t("Display below the comments"), t("Display above and below the comments"), t("Do not display")), t("Position of the comment controls box."));
return $output;
}
@@ -773,7 +773,7 @@ function comment_render($node, $cid = 0) {
** If enabled, show new comment form
*/
- if (user_access("post comments") && node_comment_mode($nid) == 2 && variable_get("comment_new_form", 0)) {
+ if (user_access("post comments") && node_comment_mode($nid) == 2 && variable_get("comment_form_location", 0)) {
theme("box", t("Post new comment"), comment_form(array("nid" => $nid)));
}