summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-04-07 15:02:28 +0000
committerDries Buytaert <dries@buytaert.net>2001-04-07 15:02:28 +0000
commit38806b4a39a6bdfc9d4a09f86b7bbaf0173c298d (patch)
treea445eab5750bd259731134cd31412305b55b8acb /modules/book/book.module
parent8213f5b2627a6b63db9f84b572918bd7e3254dff (diff)
downloadbrdo-38806b4a39a6bdfc9d4a09f86b7bbaf0173c298d.tar.gz
brdo-38806b4a39a6bdfc9d4a09f86b7bbaf0173c298d.tar.bz2
- fixed bug in common.inc: throttle()
- streamlined method invocation in node.inc - added node_status() function to modules - added NEW (mostly static) page module - added NEW settings module
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index b2f09b84c..342c808e8 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -29,6 +29,10 @@ function book_timout_threshold($node, $default) {
return $default;
}
+function book_status() {
+ return array(dumped, expired, queued, posted);
+}
+
function book_location($node, $nodes = array()) {
$parent = db_fetch_object(db_query("SELECT n.nid, n.title, b.parent FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE n.nid = '$node->parent'"));
if ($parent->title) {