diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-15 15:58:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-15 15:58:20 +0000 |
commit | d9cb4522bd0f445eef49316a5c9dd798e2803754 (patch) | |
tree | 8bfbeb2c292df21f15252ae47c631ec026934c13 /modules/blog/blog.module | |
parent | 7e60456ca98e9faa12fcf2ea56ee57f31c6450af (diff) | |
download | brdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.gz brdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.bz2 |
- Book module improvements. This commit changes the behavior of the "view"
hook. See mailing list for details; search for a mail with the subject:
'[IMPORTANT] behavior of "view" hook changed'. Modified patch from Nick.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index dcae01074..b3fb6ca8e 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -128,7 +128,7 @@ function blog_page_user($uid) { $trail[] = l(t("Home"), NULL); $trail[] = l(t("Blogs"), "blog"); $trail[] = t("%name's blog", array("%name" => $account->name)); - theme("path", $trail, $trail); + theme("breadcrumb", $trail); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); while ($node = db_fetch_object($result)) { @@ -144,7 +144,7 @@ function blog_page_last() { // Breadcrumb navigation: $trail[] = l(t("Home"), NULL); $trail[] = t("Blogs"); - theme("path", $trail, $trail); + theme("breadcrumb", $trail); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); @@ -232,13 +232,14 @@ function blog_page() { function blog_view($node, $main = 0) { if ($main == 0) { // Breadcrumb navigation: - $trail[] = l(t("Home"), NULL); - $trail[] = l(t("%name's blog", array("%name" => $node->name)), "blog/$node->uid"); - - theme("path", $trail, $trail); + $node->trail[] = l(t("Home"), NULL); + $node->trail[] = l(t("%name's blog", array("%name" => $node->name)), "blog/$node->uid"); } - theme("node", $node, $main); + $node->teaser = check_output($node->teaser); + $node->body = check_output($node->body); + + return $node; } function blog_link($type, $node = 0, $main) { |