diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-15 17:01:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-15 17:01:32 +0000 |
commit | 1f0565806b1809b4c0c0a157f7fbfb4ac611e16a (patch) | |
tree | 85448501218986cca7db81f7ee5f0d3e9f3b7f5d /includes/node.inc | |
parent | f1716fbd9c4fee630fc091d8d9dc87cd105d77da (diff) | |
download | brdo-1f0565806b1809b4c0c0a157f7fbfb4ac611e16a.tar.gz brdo-1f0565806b1809b4c0c0a157f7fbfb4ac611e16a.tar.bz2 |
- 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
Diffstat (limited to 'includes/node.inc')
-rw-r--r-- | includes/node.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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"; |