diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-19 07:41:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-19 07:41:55 +0000 |
commit | 2fbc7fcf27b34445b7d0714f22a6e3e7f52d2389 (patch) | |
tree | 2035e2cd3eaff49f7179cb7b05bf9fe31dcc634d /modules/comment/comment.module | |
parent | e4695fd5edd0d2da9f92845ea3868bb03e75f630 (diff) | |
download | brdo-2fbc7fcf27b34445b7d0714f22a6e3e7f52d2389.tar.gz brdo-2fbc7fcf27b34445b7d0714f22a6e3e7f52d2389.tar.bz2 |
- Committed a partial administration page integration patch.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index a2a2bddd3..930e2cdf4 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1174,29 +1174,29 @@ function comment_admin() { if (user_access("administer comments")) { switch ($op) { case "edit": - print comment_admin_edit(arg(3)); + $output = comment_admin_edit(arg(3)); break; case "search": - print search_type("comment", url("admin/comment/search"), $_POST["keys"]); + $output = search_type("comment", url("admin/comment/search"), $_POST["keys"]); break; case "votes": case t("Add new vote"): case t("Delete vote"): case t("Save vote"): if (user_access("administer moderation")) { - print comment_mod_votes($edit); + $output = comment_mod_votes($edit); } break; case "roles": case t("Save scores"): if (user_access("administer moderation")) { - print comment_mod_roles($edit); + $output = comment_mod_roles($edit); } break; case "matrix": case t("Submit votes"): if (user_access("administer moderation")) { - print comment_mod_matrix($edit); + $output = comment_mod_matrix($edit); } break; case "filters": @@ -1204,31 +1204,32 @@ function comment_admin() { case t("Delete threshold"): case t("Save threshold"): if (user_access("administer moderation")) { - print comment_mod_filters($edit); + $output = comment_mod_filters($edit); } break; case "delete": - print comment_delete(array("cid" => arg(3))); + $output = comment_delete(array("cid" => arg(3))); break; case t("Delete"): - print status(comment_delete($edit)); - print comment_admin_overview(0); + $output = status(comment_delete($edit)); + $output .= comment_admin_overview(0); break; case t("Submit"): - print status(comment_save(check_query(arg(3)), $edit)); - print comment_admin_overview(0); + $output = status(comment_save(check_query(arg(3)), $edit)); + $output .= comment_admin_overview(0); break; default: if (arg(3) == 1) { - print comment_admin_overview(1); + $output = comment_admin_overview(1); } else { - print comment_admin_overview(0); + $output = comment_admin_overview(0); } } + return $output; } else { - print message_access(); + return message_access(); } } |