summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-26 02:43:48 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-26 02:43:48 +0000
commit8b1e5d05052c85e6ac36a83d79052dd79c024319 (patch)
tree09129dacad60abcf681199c99e4eb11626f7b957 /modules/node
parentb5bf8a8f476fe4214478fec9250e651164b0e76f (diff)
downloadbrdo-8b1e5d05052c85e6ac36a83d79052dd79c024319.tar.gz
brdo-8b1e5d05052c85e6ac36a83d79052dd79c024319.tar.bz2
#97231 by pwolanin. Keep the node type in a property and use it consistently.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc2
1 files changed, 2 insertions, 0 deletions
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'),