diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-09-27 20:37:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-09-27 20:37:01 +0000 |
commit | 9f3d9f11158aec709dac7d67b99ff6fd8c2c634d (patch) | |
tree | 68fc762cb0dd1bdb7b86483c4e12be6aa69dcabc /modules/menu/menu.module | |
parent | 0d84b9184948372469480fa32daab66d37c95df6 (diff) | |
download | brdo-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/menu/menu.module')
-rw-r--r-- | modules/menu/menu.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 03406735c..f3fb6e8b2 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -350,7 +350,7 @@ function _menu_parent_depth_limit($item) { * Implementation of hook_form_alter(). Adds menu item fields to the node form. */ function menu_form_alter(&$form, $form_state, $form_id) { - if (isset($form['#node']) && $form['#node']->type . '_node_form' == $form_id) { + if (!empty($form['#node_edit_form'])) { // Note - doing this to make sure the delete checkbox stays in the form. $form['#cache'] = TRUE; |