summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2001-05-20 16:47:50 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2001-05-20 16:47:50 +0000
commit27496c4620f3669b3c5449816550edee73e3794f (patch)
treed51f1724736c9259c0d392f0a5ab2d1ac68f571a /modules/book
parentdb2a56974985078811ff380c01f0e2460b4a9089 (diff)
downloadbrdo-27496c4620f3669b3c5449816550edee73e3794f.tar.gz
brdo-27496c4620f3669b3c5449816550edee73e3794f.tar.bz2
- Changed the node_get_object() and node_get_array() functions to allow multiple conditions
- Added the "delete" hook for node-modules. When called, a module should do additional clean-up if necessary. - Updated all node-modules
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index c46e7cd0d..757b63a03 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -109,7 +109,7 @@ function book_form($edit = array()) {
$form .= form_item(t("Category"), category_form_select("book", $edit));
if ($edit[pid]) {
- $node = node_get_object("nid", $edit[pid]);
+ $node = node_get_object(array("nid" => $edit[pid]));
$form .= form_item(t("Parent"), "<A HREF=\"node.php?id=$node->id\">". check_output($node->title) ."</A>", t("The parent subject or category the page belongs in."));
$form .= form_hidden("parent", $edit[parent]);
}
@@ -157,7 +157,7 @@ function book_save($edit) {
function book_parent($nid) {
global $status;
- if ($node = node_get_object("nid", $nid)) {
+ if ($node = node_get_object(array("nid" => $nid))) {
$list[$nid] = $nid;
}
if ($node->pid) {
@@ -205,7 +205,7 @@ function book_admin() {
print book_form();
break;
case "edit":
- print book_form(node_get_array(nid, $id));
+ print book_form(node_get_array(array(nid => $id)));
break;
case "listing":
print node_listing(book_query());
@@ -246,7 +246,7 @@ function book_page() {
function book_update($id) {
global $status;
- if ($node = node_get_object("nid", $id)) {
+ if ($node = node_get_object(array("nid" => $id))) {
if ($node->status != $status[posted]) {
return t("You can only update accepted pages: pages that are still queued or already expired can not be updated.");
}