From ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 29 May 2010 07:53:44 +0000 Subject: - Patch #809558 by mr.baileys: node_title_list() didn't return renderable array for block content. --- modules/node/node.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index b942e2e27..12f1017ba 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -271,7 +271,7 @@ function node_admin_paths() { } /** - * Gather a listing of links to nodes. + * Gathers a listing of links to nodes. * * @param $result * A DB result object from a query to fetch node entities. If your query @@ -282,8 +282,8 @@ function node_admin_paths() { * A heading for the resulting list. * * @return - * An HTML list suitable as content for a block, or FALSE if no result can - * fetch from DB result object. + * A renderable array containing a list of linked node titles fetched from + * $result, or FALSE if there are no rows in $result. */ function node_title_list($result, $title = NULL) { $items = array(); @@ -293,7 +293,7 @@ function node_title_list($result, $title = NULL) { $num_rows = TRUE; } - return $num_rows ? theme('item_list__node', array('items' => $items, 'title' => $title)) : FALSE; + return $num_rows ? array('#theme' => 'item_list__node', '#items' => $items, '#title' => $title) : FALSE; } /** -- cgit v1.2.3