Andypost says he's going to contribute an Entity Example to Examples Project. Are you there, Andy? He has a good working example - ask him. -Randy On Wed, Nov 17, 2010 at 3:11 PM, Sascha Grossenbacher <saschagros@gmail.com>wrote:
Have a look at http://engineeredweb.com/blog/10/3/pluggable-entity-operations-drupal-7
As you can see, there isn't much. Implemented hook_entity_info() and eventually customize the controller class for loading your entities.
That's basically all that entities have in common in core. Everything else AFAIK is about making your entity fieldable, which is a different topic.
There is also http://drupal.org/project/entity, which provides more hooks and stuff, so that other modules (like Rules) can use your entity).
Sascha
On Wed, Nov 17, 2010 at 11:55 PM, Ivan Jaroš <ijaros@gmail.com> wrote:
Hi. I'm looking for any documentation about working with entities in Drupal 7. I wasn't able to find anythnig usable at all. I'm not talking about fields, there is plenty documentation and examples. Particulary I'm looking for anything that would explain functions needed for creating a custom entity, what are the relations between functions, what is the workflow and examples of code. I wasn't able to find any examples that would have any of those things. I've also found that documentation at api.drupal.org regarding entities is really insufficient. Also there is practically none documentation whatsoever in handbook about entities from programatical point of view. So any typs for blog posts about entities for programmers?
Ivan Jaroš blog: ivanjaros.com tel: +421 948 496 678 skype: ijaros
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450