diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-05-17 22:00:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-05-17 22:00:06 +0000 |
commit | e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f (patch) | |
tree | 16bddd048a7a2c0eb271879700cb7c47e2fe68ba /modules/book.module | |
parent | ac3c45dd2ac615327678301a5bb43d9c7edc7af8 (diff) | |
download | brdo-e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f.tar.gz brdo-e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f.tar.bz2 |
- Code improvements by JonBob. Thanks.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/book.module b/modules/book.module index 7658a9251..f499db81c 100644 --- a/modules/book.module +++ b/modules/book.module @@ -679,7 +679,7 @@ function book_tree($parent = 0, $depth = 3, $unfold = array()) { } /** - * Menu callback. Prints a listing of all books. + * Menu callback; prints a listing of all books. */ function book_render() { @@ -705,7 +705,7 @@ function book_render() { } /** - * Menu callback. Prints a node as a book page, complete with navigation. + * Menu callback; prints a node as a book page, complete with navigation. */ function book_view_page($nid = 0, $cid = 0) { $node = node_load(array('nid' => $nid)); @@ -714,7 +714,7 @@ function book_view_page($nid = 0, $cid = 0) { } /** - * Menu callback. Generates printer-friendly book page will all descendants. + * Menu callback; generates printer-friendly book page will all descendants. */ function book_print($nid = 0, $depth = 1) { global $base_url; @@ -845,7 +845,7 @@ function book_admin_save($nid, $edit = array()) { } /** - * Menu callback. Displays a listing of all orphaned book pages. + * Menu callback; displays a listing of all orphaned book pages. */ function book_admin_orphan() { $result = db_query("SELECT n.nid, n.title, n.status, b.parent FROM {node} n INNER JOIN {book} b ON n.nid = b.nid"); @@ -870,9 +870,9 @@ function book_admin_orphan() { } /** - * Menu callback. Displays the book administration page. + * Menu callback; displays the book administration page. */ -function book_admin($nid) { +function book_admin($nid = 0) { $op = $_POST["op"]; $edit = $_POST["edit"]; |