Index: contrib/content_copy.inc
===================================================================
--- contrib/content_copy.inc	(revision 0)
+++ contrib/content_copy.inc	(revision 0)
@@ -0,0 +1,25 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * install_profile_api include for content_copy module
+ */
+ 
+/**
+ * Import a content type from a file containing the exported code from 
+ * admin/content/types/export
+ *
+ * @param $file The file 
+ */
+function install_content_copy_import_from_file($file) {
+  ob_start();
+  include $file;
+  ob_end_clean();
+  
+  $form_state['values']['type_name'] = '<create>';
+  $form_state['values']['macro'] = '$content = '. var_export($content, 1) .';';
+  $form_state['values']['op'] = t('Import');
+  
+  drupal_execute('content_copy_import_form', $form_state);  
+}
