drewish came up with a better way of doing this in station module.
see http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/station/pro...
Look at gtf_default_content_types_install.
I've nicked this myself for some modules that need to ensure CCK already exists and to then add fields to content types.
Closed: outdated
Code