Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.x-dev
Component:
Email Notifications
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2013 at 22:51 UTC
Updated:
11 Jul 2013 at 23:51 UTC
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
Comment #1
ezra-g commentedNot that I can think of, but let us know how your implementation goes and we'll be happy to advise from there.
Comment #2
RobKoberg commentedOh, 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 seeingan 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?