Commit d02060ed authored by chris_hall_hu_cheng's avatar chris_hall_hu_cheng

Issue #2559351 by chris_hall_hu_cheng, keboca, roberto_araya: Exception while...

Issue #2559351 by chris_hall_hu_cheng, keboca, roberto_araya: Exception while hook_node_view is executed
parent ab722d78
......@@ -52,10 +52,9 @@ function blog_help($path, $arg) {
/**
* Implements hook_node_view().
*/
function blog_node_view($node, $view_mode) {
function blog_node_view(&$build, $node, $display, $view_mode) {
if ($view_mode != 'rss') {
if ($node->type == 'blog' && (arg(0) != 'blog' || arg(1) != $node->uid)) {
// This goes to l(), which escapes !username in both title and attributes.
$links['blog_usernames_blog'] = array(
'title' => t("!username's blog", array('!username' => user_format_name($node))),
'href' => "blog/$node->uid",
......
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