Closed (fixed)
Project:
Safeword
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Oct 2013 at 22:45 UTC
Updated:
7 Mar 2014 at 13:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gabrielmachadosantos commented- Added the property type on hook_field_info();
- Created custom callback function that will provide the extra metadata required.
Comment #2
gabrielmachadosantos commentedResubmitting, sorry I posted the wrong version of the patch. Please, disregard the patch above.
Comment #3
skwashd commentedLooks good to me.
Comment #4
skwashd commentedRerolled so now it also supports rules and not just entity_metadata_wrapper().
Comment #5
skwashd commentedIn rules it is possible to reference field values in rules actions or conditions.
For example I have a project node type, which has a entity reference to a client node. That client node has a client code field which is using safeword. I could have an email list which is [client-code]@example.com and configure rules so every time something happens on the project node it sends an email to that email address.
I am struggling to come up with a better example that isn't directly derived from my client's direct use case.
Comment #6
budalokko commentedPatch in #4 worked great for me on entity_metadata_wrapper().
Comment #7
robert castelo commentedThanks, good patch!
Added to Safeword 7.x-1.5