diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-29 07:53:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-29 07:53:44 +0000 |
commit | ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9 (patch) | |
tree | c782c1215efd9f82c516608cd62ed7e56cdd4e4d /modules/node | |
parent | 3d2110bfdb8d12e40d4093e0050a14301b0e36d5 (diff) | |
download | brdo-ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9.tar.gz brdo-ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9.tar.bz2 |
- Patch #809558 by mr.baileys: node_title_list() didn't return renderable array for block content.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
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; } /** |