Loading modules/book.module +0 −16 Original line number Diff line number Diff line Loading @@ -161,23 +161,7 @@ function book_block($op = 'list', $delta = 0) { * Implementation of hook_load(). */ function book_load($node) { global $user; $book = db_fetch_object(db_query('SELECT parent, weight, log FROM {book} WHERE nid = %d', $node->nid)); if (arg(2) == 'edit' && !user_access('administer nodes')) { // If a user is about to update a book page, we overload some // fields to reflect the changes. if ($user->uid) { $book->uid = $user->uid; $book->name = $user->name; } else { $book->uid = 0; $book->name = ''; } } return $book; } Loading Loading
modules/book.module +0 −16 Original line number Diff line number Diff line Loading @@ -161,23 +161,7 @@ function book_block($op = 'list', $delta = 0) { * Implementation of hook_load(). */ function book_load($node) { global $user; $book = db_fetch_object(db_query('SELECT parent, weight, log FROM {book} WHERE nid = %d', $node->nid)); if (arg(2) == 'edit' && !user_access('administer nodes')) { // If a user is about to update a book page, we overload some // fields to reflect the changes. if ($user->uid) { $book->uid = $user->uid; $book->name = $user->name; } else { $book->uid = 0; $book->name = ''; } } return $book; } Loading