From f86a944979de75225dc3ddd00920ebedbfe307ed Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 12 May 2002 15:40:57 +0000 Subject: - applied Stevens link patch. - fixed block permissions. - fixed user admin page errors: http://www.drupal.org/node.php?id=173. - cleaned up common.inc a bit: removed format_info, path_img, field_merge. --- 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 1b1e562eb..d75640358 100644 --- a/modules/book.module +++ b/modules/book.module @@ -92,11 +92,11 @@ function book_save($op, $node) { function book_link($type, $node = 0, $main = 0) { if ($type == "page" && user_access("access content")) { - $links[] = lm(t("collaborative book"), array("mod" => "book"), t("Read and contribute to the collaborative books.")); + $links[] = lm(t("collaborative book"), array("mod" => "book"), "", array("title" => t("Read and contribute to the collaborative books."))); } if ($type == "menu.create" && user_access("post content")) { - $links[] = lm(t("create book page"), array("mod" => "node", "op" => "add", "type" => "book"), t("Add a new book page.")); + $links[] = lm(t("create book page"), array("mod" => "node", "op" => "add", "type" => "book"), "", array("title" => t("Add a new book page."))); } if ($type == "admin" && user_access("administer nodes")) { @@ -104,7 +104,7 @@ function book_link($type, $node = 0, $main = 0) { } if ($type == "node" && $node->type == "book" && book_access("update", $node)) { - $links[] = lm(t("edit this page"), array("mod" => "node", "op" => "edit", "id" => $node->nid), t("Suggest an update for this book page.")); + $links[] = lm(t("edit this page"), array("mod" => "node", "op" => "edit", "id" => $node->nid), "", array("title" => t("Suggest an update for this book page."))); } return $links ? $links : array(); @@ -406,8 +406,8 @@ function book_view($node, $main = 0) { } $output .= "
"; - $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), t("View the previous page in this book.")) : t("previous")) ."". lm(t("index"), array("mod" => "book"), t("View this book's table of contents.")) ."". ($next ? l(t("next"), array("id" => $next->nid), t("View the next page in this book.")) : t("next")) .""; - $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), t("View this page's parent section.")) : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; + $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), "", array("title" => t("View the previous page in this book."))) : t("previous")) ."". lm(t("index"), array("mod" => "book"), t("View this book's table of contents.")) ."". ($next ? l(t("next"), array("id" => $next->nid), "", array("title" => t("View the next page in this book."))) : t("next")) .""; + $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), "", array("title" => t("View this page's parent section."))) : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; $output .= "
"; $output .= "
". $theme->links(link_node($node, $main)) ."
"; $output .= ""; @@ -675,7 +675,7 @@ function book_admin_links() { $links[] = la(t("book") .": ". check_output($book->title) ."", array("mod" => "book", "op" => "view", "id" => $book->nid)); } $links[] = la(t("orphan pages"), array("mod" => "book", "op" => "orphan")); - $links[] = lm(t("export to HTML"), array("mod" => "book", "op" => "feed"), t("display all books in a single HTML page")); + $links[] = lm(t("export to HTML"), array("mod" => "book", "op" => "feed"), "", array("title" => t("display all books in a single HTML page"))); $links[] = la(t("help"), array("mod" => "book", "op" => "help")); return $links; } -- cgit v1.2.3