From 1f0565806b1809b4c0c0a157f7fbfb4ac611e16a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Apr 2001 17:01:32 +0000 Subject: - improved submit.php: it now uses the new category code, incl content bindings. You can setup different "categories" which map on a content type. Example: review -> review.module article -> story.module column -> story.module announc. -> story.module addons -> file.module themes -> file.module - "generalised" story.module and book.module's output. - fixed bug in includes/timer.inc - fixed glitch in theme example.theme: it said "$how by" but the variable $how has never been declared. - added "drupal development settings" to display some timings - more work on the categories/topics -> does NOT work yet --- includes/node.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'includes/node.inc') diff --git a/includes/node.inc b/includes/node.inc index 3f734ff3e..7026efbb6 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -18,6 +18,13 @@ function node_get_array($field, $value) { return db_fetch_array(_node_get($field, $value)); } +function node_get_category($nid) { + db_fetch_array(db_query("SELECT FROM")); +} + +function node_get_topic($nid) { +} + function node_del($field, $value) { global $status; if ($node = node_get_object($field, $value)) { @@ -123,7 +130,6 @@ function node_save($node) { } } - function node_invoke($node, $name, $arg = 0) { if ($node[type]) $function = $node[type] ."_$name"; if ($node->type) $function = $node->type ."_$name"; -- cgit v1.2.3