This include file provides content type import functionality based on the content_copy module's export data. Each content type export goes in its own file.

Usage is as follows:
1. Place output from content type export as-is into an inc file. The only additional piece that needs to be in this file is an opening php tag.
2. In your install profile code, make sure that content_copy.module is required.
3. Make a call like so:

install_content_copy_import_from_file('path/to/file.inc');
CommentFileSizeAuthor
install_profile-content_copy.patch804 byteszroger

Comments

quicksketch’s picture

Status: Needs review » Fixed

Absolutely fantastic! I love that it's an inc file for content_copy.module. This is certainly a much more efficient approach than creating a node type with node.inc then creating individual fields with content.inc. I added additional inline documentation and committed. Thanks!

moshe weitzman’s picture

Component: crud.inc » CRUD functions and includes

This is tight! Thanks.

vkr11’s picture

Susbscribe.

-Victor
http://drupalsearch.org

joegml’s picture

Thanks for the tip to this post Moshe.

Will this code work in the context of a vanilla D6 Module Install File or only in an Install Profile? I haven't played w/ install profiles.

Thanx for any clarification.

moshe weitzman’s picture

This works in any install file. You just have to do an include before you use these functions. The name of this module is quite misleading. sorry about that.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

moshe weitzman’s picture

Status: Closed (fixed) » Patch (to be ported)

Seems that this was only committed to 5.x. D6 CCK is out now. Are any changes needed?

quicksketch’s picture

I believe it was only committed to the Drupal 6 branch, that's what we've been using it for.

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/install_pro...

moshe weitzman’s picture

Status: Patch (to be ported) » Fixed

sorry - my bad

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.