From 8b1e5d05052c85e6ac36a83d79052dd79c024319 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sun, 26 Nov 2006 02:43:48 +0000 Subject: #97231 by pwolanin. Keep the node type in a property and use it consistently. --- modules/node/content_types.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/node') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 389234617..9ce85e4fa 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -67,6 +67,8 @@ function node_type_form($type = NULL) { $type->locked = FALSE; } + $form['#node_type'] = $type; // Make the type object availabe to implementations of hook_form_alter. + $form['identity'] = array( '#type' => 'fieldset', '#title' => t('Identification'), -- cgit v1.2.3