From e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 17 May 2004 22:00:06 +0000 Subject: - Code improvements by JonBob. Thanks. --- modules/book.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/book.module') 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"]; -- cgit v1.2.3