From d85e45bf64cb2715f116eae1e0ea422419c0a358 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 31 Dec 2001 13:02:53 +0000 Subject: - Added "x new comments" feature. Requires a SQL update. - Tidied up some comment related code in node.module. --- modules/node.module | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index e9b7f69a6..c4999b1b6 100644 --- a/modules/node.module +++ b/modules/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; -- cgit v1.2.3