Commit d5920c62 authored by Dries's avatar Dries

- Bugfix: fixed book module links. Fixed bug #3621. Patch #132 by eafarris.

parent 6e851716
......@@ -73,8 +73,8 @@ function book_link($type, $node = 0, $main = 0) {
if (user_access("maintain books")) {
menu("node/add/book", t("book page"), "book_page", 0);
menu("admin/node/book", t("books"), NULL, 4);
menu("admin/node/book/orphan", t("orphan pages"), NULL, 8);
menu("admin/node/book/help", t("help"), NULL, 9);
menu("admin/node/book/orphan", t("orphan pages"), "book_admin_orphan", 8);
menu("admin/node/book/help", t("help"), "book_help", 9);
$result = db_query("SELECT n.nid, n.title FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while ($book = db_fetch_object($result)) {
......
......@@ -73,8 +73,8 @@ function book_link($type, $node = 0, $main = 0) {
if (user_access("maintain books")) {
menu("node/add/book", t("book page"), "book_page", 0);
menu("admin/node/book", t("books"), NULL, 4);
menu("admin/node/book/orphan", t("orphan pages"), NULL, 8);
menu("admin/node/book/help", t("help"), NULL, 9);
menu("admin/node/book/orphan", t("orphan pages"), "book_admin_orphan", 8);
menu("admin/node/book/help", t("help"), "book_help", 9);
$result = db_query("SELECT n.nid, n.title FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while ($book = db_fetch_object($result)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment