Closed derimagia closed 7 years ago
Definitely would appreciate pull requests especially if you already spot the places with issues.
Right now you can't use entity_metadata_wrapper to query / set the event states like you can do it for entity reference fields. Not sure how familiar you are with this, but if you aren't take a look since it makes dealing with entities and fields a lot less painful:
https://www.drupal.org/documentation/entity-metadata-wrappers
Entity metadata wrapper is a must use for us when we use Drupal for Mobile Services, as I am currently using it for.
I started this work but for time sake for now all I did was do a field_info_alter so set the property type of the field to be "integer" so I can get/set the ID of the state at the very least for now. In an ideal world the getter would auto-load the state, similar to how entityreference works with EMW.
There are a decent amount of places where the Module does not adhere to the Entity API with the entity_metadata_wrapper properties, etc.
This should be cleaned up..
Specifically I have found so far:
I'll continue to update this as I find more.