summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-29 15:31:17 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-29 15:31:17 +0000
commit598e739208de28182f3329a2c23511f5c27489e5 (patch)
treeac6fa5fce35f2d60896660297ef1be52f0df728e /modules/book
parentcef10893892a1c40f73fd972969c3512b0983cd6 (diff)
downloadbrdo-598e739208de28182f3329a2c23511f5c27489e5.tar.gz
brdo-598e739208de28182f3329a2c23511f5c27489e5.tar.bz2
- Patch #578520 by sun | c960657, mfb, Dries, catch, mattyoung: make in url() only accept an array. Another nice API clean-up!
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 5b6be5766..eed90fbaa 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -73,7 +73,7 @@ function book_node_view_link($node, $build_mode) {
$links['book_add_child'] = array(
'title' => t('Add child page'),
'href' => 'node/add/' . str_replace('_', '-', $child_type),
- 'query' => 'parent=' . $node->book['mlid'],
+ 'query' => array('parent' => $node->book['mlid']),
);
}