content_copy.inc

Roger López - September 19, 2008 - 17:48
Project:Install Profile API
Version:6.x-1.x-dev
Component:CRUD functions and includes
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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:

<?php
install_content_copy_import_from_file
('path/to/file.inc');
?>

AttachmentSize
install_profile-content_copy.patch804 bytes

#1

quicksketch - September 23, 2008 - 04:04
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!

#2

moshe weitzman - October 2, 2008 - 20:28
Component:crud.inc» CRUD functions and includes

This is tight! Thanks.

#3

vkr11 - October 10, 2008 - 19:08

Susbscribe.

-Victor
http://drupalsearch.org

#4

joegml - October 13, 2008 - 01:04

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.

#5

moshe weitzman - October 13, 2008 - 02:40

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.

#6

Anonymous (not verified) - October 27, 2008 - 02:43
Status:fixed» closed

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

#7

moshe weitzman - November 18, 2008 - 21:58
Status:closed» patch (to be ported)

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

#8

quicksketch - November 18, 2008 - 22:22

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...

#9

moshe weitzman - November 19, 2008 - 22:14
Status:patch (to be ported)» fixed

sorry - my bad

#10

System Message - December 3, 2008 - 22:25
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.