diff --git a/modules/book.module b/modules/book.module index 825ac5c0c57098017160beccb6960518f4eb6fc6..5ecd04a83545f1b13b7bb9b73a21b12aabfcc9c3 100644 --- a/modules/book.module +++ b/modules/book.module @@ -248,7 +248,7 @@ function book_validate($node) { */ function book_form(&$node) { if ($node->nid && !$node->parent && !user_access('create new books')) { - $form['parent'] = array('#type' => 'value', $node->parent); + $form['parent'] = array('#type' => 'value', '#value' => $node->parent); } else { $form['parent'] = array('#type' => 'select', diff --git a/modules/book/book.module b/modules/book/book.module index 825ac5c0c57098017160beccb6960518f4eb6fc6..5ecd04a83545f1b13b7bb9b73a21b12aabfcc9c3 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -248,7 +248,7 @@ function book_validate($node) { */ function book_form(&$node) { if ($node->nid && !$node->parent && !user_access('create new books')) { - $form['parent'] = array('#type' => 'value', $node->parent); + $form['parent'] = array('#type' => 'value', '#value' => $node->parent); } else { $form['parent'] = array('#type' => 'select',