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.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 81bdb41b3..551a8db2a 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -295,7 +295,7 @@ function book_get_books() {
*/
function book_form_alter(&$form, $form_state, $form_id) {
- if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] . '_node_form' == $form_id) {
+ if (!empty($form['#node_edit_form'])) {
// Add elements to the node form.
$node = $form['#node'];