From 9f3d9f11158aec709dac7d67b99ff6fd8c2c634d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 27 Sep 2008 20:37:01 +0000 Subject: - Patch #161301 by Eaton, Sun, moshe and webchick: make checking for node edit forms easier. DX improvement. --- modules/path/path.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index f4cb039c2..e3eaa8de4 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -172,7 +172,7 @@ function path_nodeapi(&$node, $op, $arg) { * Implementation of hook_form_alter(). */ function path_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'])) { $path = isset($form['#node']->path) ? $form['#node']->path : NULL; $form['path'] = array( '#type' => 'fieldset', -- cgit v1.2.3