summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-10 14:32:09 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-10 14:32:09 +0000
commit9c1ccbbf5497e071bb17e554bb2711954bb0b32b (patch)
treec7ea6da4320f601e99e4b1291d69de0d541b29a2 /modules
parent50717513c242d92be4e150124c5bc1b55de66956 (diff)
downloadbrdo-9c1ccbbf5497e071bb17e554bb2711954bb0b32b.tar.gz
brdo-9c1ccbbf5497e071bb17e554bb2711954bb0b32b.tar.bz2
Getting rid of parameters which were never passed.
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module4
-rw-r--r--modules/book/book.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module
index da49117ab..a56d2bc8b 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -533,7 +533,7 @@ function book_toc_recurse($nid, $indent, $toc, $children, $exclude) {
return $toc;
}
-function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
+function book_toc($exclude = 0) {
$result = db_query('SELECT DISTINCT(n.nid), n.title, b.parent FROM {node} n '. node_access_join_sql() .' INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND '. node_access_where_sql() .' ORDER BY b.weight, n.title');
while ($node = db_fetch_object($result)) {
@@ -549,7 +549,7 @@ function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
$toc[0] = '<'. t('top-level') .'>';
}
- $toc = book_toc_recurse($parent, $indent, $toc, $children, $exclude);
+ $toc = book_toc_recurse(0, '', array(), $children, $exclude);
return $toc;
}
diff --git a/modules/book/book.module b/modules/book/book.module
index da49117ab..a56d2bc8b 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -533,7 +533,7 @@ function book_toc_recurse($nid, $indent, $toc, $children, $exclude) {
return $toc;
}
-function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
+function book_toc($exclude = 0) {
$result = db_query('SELECT DISTINCT(n.nid), n.title, b.parent FROM {node} n '. node_access_join_sql() .' INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND '. node_access_where_sql() .' ORDER BY b.weight, n.title');
while ($node = db_fetch_object($result)) {
@@ -549,7 +549,7 @@ function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
$toc[0] = '<'. t('top-level') .'>';
}
- $toc = book_toc_recurse($parent, $indent, $toc, $children, $exclude);
+ $toc = book_toc_recurse(0, '', array(), $children, $exclude);
return $toc;
}