Creation of content type should set third party modules settings as well

voxpelli - June 8, 2009 - 12:04
Project:Install Profile API
Version:6.x-2.0
Component:CRUD functions and includes
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Looking at install_create_content_type() and at node_type_form_submit() there's quite some difference at how the values are handled.

node_type_form_submit() does in addition to call node_type_save() also iterate through all of the other values and set variables for those - which is used by many third party modules like "Automatic Nodetitles" and "Form Block" to save a node type specific setting. I'm wondeirng if perhaps we should add this functionality to install_create_content_type() just to make it easier to install full content types including third party settings and make the function more inline with the built in functionality?

Also node_type_form_submit() rebuilds the node types and the menu - is that something that should be done as well?

I can do a patch for this - but I wanted to discuss whether it's a good idea or not first.

 
 

Drupal is a registered trademark of Dries Buytaert.