I'm using a module to create several new content type and i was looking for a way to set the default comment setting for the new content type. It would be best if i can do this in the module instead of editing the setting in admin/content/node-type/.

The module will be used in several drupal instance that will be installed and while i can edit this manually once the content types are added it would be best if i can just set this default when they are created by the module.

I searched drupal.org but i wasnt able to find a solution.
One that i found involved changing comment.module('#default_value' => variable_get('comment_'. $form['#node_type']->type, COMMENT_NODE_DISABLED),) but i prefer not to do this and make the change in my module.

thanks in advance for any help.

Comments

dddave’s picture

Status: Active » Closed (won't fix)

This might be a better place to get an useful answer: http://drupal.org/forum/4