summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-12-31 13:02:53 +0000
committerDries Buytaert <dries@buytaert.net>2001-12-31 13:02:53 +0000
commitd85e45bf64cb2715f116eae1e0ea422419c0a358 (patch)
tree9c9794f92b18ce14377ccf7a5b3fb682af693bbd /modules/node/node.module
parent69f1b4d3e074cc767ebcd3a36328348a601e726a (diff)
downloadbrdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.gz
brdo-d85e45bf64cb2715f116eae1e0ea422419c0a358.tar.bz2
- Added "x new comments" feature. Requires a SQL update.
- Tidied up some comment related code in node.module.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index e9b7f69a6..c4999b1b6 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -14,15 +14,10 @@ function node_help() {
}
}
-// TODO: still used by themes, yet doesn't return anything at the moment
+// DEPRICATED: still used by themes, yet doesn't return anything at the moment
function node_index() {
}
-function node_get_comments($nid) {
- $comment = db_fetch_object(db_query("SELECT COUNT(c.nid) AS number FROM node n LEFT JOIN comments c ON n.nid = c.nid WHERE n.nid = '$nid' GROUP BY n.nid"));
- return $comment->number ? $comment->number : 0;
-}
-
function node_teaser($body) {
$size = 400;