summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-11-26 18:27:34 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-11-26 18:27:34 +0000
commit7d0c316f82a6332b4c731e8663d455b9a7b52259 (patch)
tree7a5cfc98a1f5c53dd85cba70d5b55e32d9ce9eb2 /modules/book.module
parent255e2d0eb7e25a8e7f61e18f12c0889c4ac5cdc6 (diff)
downloadbrdo-7d0c316f82a6332b4c731e8663d455b9a7b52259.tar.gz
brdo-7d0c316f82a6332b4c731e8663d455b9a7b52259.tar.bz2
- fixed pass by reference errors. PHP only allows declaration of &$vars, not
passing them that way. For more info: http://no.php.net/manual/en/language.references.pass.php
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module
index 7f7d48409..99d3f2d24 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -133,12 +133,12 @@ function book_update($node) {
db_query("UPDATE book SET parent = '$node->parent', weight = '$node->weight' WHERE nid = '$node->nid'");
}
-function book_delete($node) {
+function book_delete(&$node) {
db_query("DELETE FROM book WHERE nid = '$node->nid'");
}
-function book_form($node, $help, $error) {
+function book_form(&$node, &$help, &$error) {
global $user;
$output .= form_select(t("Parent"), "parent", $node->parent, book_toc(), t("The parent subject or category the page belongs in."));