Is there a plan for an API to allow other modules to utilize this module to create node types:
Like having a callable function to be user in module installs:
/**
* Implements hook_install().
*/
function examplemodule_install() {
// create necessary CCK node types
cck_import_type(drupal_get_path('module', 'examplemodule') .'/includes/cck_types/type1.cck');
cck_import_type(drupal_get_path('module', 'examplemodule') .'/includes/cck_types/type2.cck');
cck_import_type(drupal_get_path('module', 'examplemodule') .'/includes/cck_types/type3.cck');
}
I have a number of custom modules that would benefit greatly by this.
Comments
Comment #1
jrglasgow commentedI added this to cck_import_custom.module.
I haven't tested it yet, but I will after my next meeting.
Comment #2
jrglasgow commentedHere is a patch for this issue:
I tested it using a test module to install a cck node type. This is the install function that I used in my test module
Comment #3
psynaptic commentedThis looks good. Sorry for not getting back to you sooner.
Would you like to be co-maintainer?