In another module, we have many entities. We need argument $entity_type for callback function 'bundle_export_callback'.

function  _bundle_copy_export_data($entity_type, $selected_data) {
  // ....
  $bundle_info_callback = $bc_info[$entity_type]['bundle_export_callback'];
  // add argument $entity_type into function bundle_export_callback
  $bundle_info = $bundle_info_callback($bkey, $entity_type);
  // ....
}
CommentFileSizeAuthor
#1 1386506-1.patch538 bytesswentel

Comments

zkday’s picture

Issue summary: View changes

fix grammar.

swentel’s picture

Status: Active » Needs review
StatusFileSize
new538 bytes

Patch attached, can you test ?

zkday’s picture

Thanks for your patch. :)

This patch is runing for my module. ;)

swentel’s picture

Status: Needs review » Fixed

ok, committed and pushed.

avd81’s picture

I am getting the following error message after creating a content with a copied content type:

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 339 of C:\wamp\vbs\sites\all\modules\entity\includes\entity.wrapper.inc).

The steps I use to create a duplicate content type are as followed:

  • I export the content type I want to copy
  • I change the bundle name to the new content type
  • Import the revised code

What step am I missing, or do have any suggestions on what might be causing this issue?
Please forgive if the solution is simple, I am still a newbie to Drupal.

Will this patch correct this issue?

Kind Regards!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

fix grammar!