Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2006 at 01:26 UTC
Updated:
12 Apr 2007 at 11:10 UTC
The comment module (and upload module) modify the content-type configuration form to add fields, but these fields get their default value from a key including $form['identity']['type']['#default_value']:
'#default_value' => variable_get('comment_'. $form['identity']['type']['#default_value'], COMMENT_NODE_READ_WRITE),
However, for system-defined content types, the [identity][type] is read-only (a value) field, so doesn't have #default_value
[type] => Array
(
[#type] => value
[#value] => blog
)
Would $form[orig_type] or $form[old_type] be a better place to look? (I'm still a bit unclear on the use of those values).
Comments
Comment #1
lyricnz commentedObsolete, closing.