Just ran into this on a custom content type where I was using hook_commons_activity_streams_message_selection_alter:

EntityMetadataWrapperException: Unknown data property field_target_nodes. in EntityStructureWrapper->getPropertyInfo() (line 339 of /Users/rkoberg/Sites/mash/profiles/commons/modules/contrib/entity/includes/entity.wrapper.inc).

So, if you have custom content type and want to send notification messages, you need to add field_target_nodes to the message type (admin/structure/messages).

Is theere anything we should be aware of regarding all of the other field_target_*s? Are there any other areas we should look for to add those field instances?

Comments

ezra-g’s picture

Status: Active » Fixed

Not that I can think of, but let us know how your implementation goes and we'll be happy to advise from there.

RobKoberg’s picture

Oh, it is working. Scratching my head for a while, though...

One other minor thing you need to do is go to Manage Display and set
the Target Nodes label to hidden.

Btw, how did you get the message types into features? I am not seeing
an option for that in features.

To get this into a feature you need to find the target_node for your message type in field instances. (Find is your friend here)
I am wondering if this has something to do with the inability to revert features?

Status: Fixed » Closed (fixed)

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