summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module8
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;
}
/**