summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
commit9f3d9f11158aec709dac7d67b99ff6fd8c2c634d (patch)
tree68fc762cb0dd1bdb7b86483c4e12be6aa69dcabc /modules/book/book.module
parent0d84b9184948372469480fa32daab66d37c95df6 (diff)
downloadbrdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.gz
brdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.bz2
- Patch #161301 by Eaton, Sun, moshe and webchick: make checking for node edit forms easier. DX improvement.
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'];