summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 1e4eb7ef0..245651d09 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -164,6 +164,7 @@ function book_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$block[0]['info'] = t('Book navigation');
+ $block[0]['cache'] = BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_ROLE;
return $block;
case 'view':
if (arg(0) == 'node' && is_numeric(arg(1))) {
@@ -440,7 +441,7 @@ function _book_add_form_elements(&$form, $node) {
);
$options = array();
$nid = isset($node->nid) ? $node->nid : 'new';
-
+
if (isset($node->nid) && ($nid == $node->book['original_bid']) && $node->book['has_children'] && (MENU_MAX_DEPTH - 1 - menu_link_children_relative_depth($node->book) == 0)) {
// This is the top level node in a maximum depth book and thus cannot be moved.
$options[$node->nid] = $node->title;