Are entities drupal's new nodes?
Posted November 6th, 2009 by fago
With drupal 7 the concept of an entity gets introduced in drupal, thus nodes, comments, users, terms - all these are drupal's entities. Most important the also new field API is able to support any entity!
So how will this affect the drupal landscape?
As a consequence contrib modules will have to support all kind of different entities to be really useful. Many modules like views or flag already support different entities, with the number of entities growing this will become even more important!
Well while working on rules2 and the profile module for d7, I had to implement basic CRUD functionality, which is already very simple in d7. To make it even simpler I started working on an entity CRUD API. This is useful for developers creating a new db entity as they get all CRUD functionality for free. It's even possible to introduce new entities just by implementing a hook.
So as an entity is now fieldable, supported by views and easy to create, I see the number of different entities growing. Instead of implementing custom content types or new features for nodes, developers will create custom entity types and new features for entities. So in a way entities are becoming drupal's new nodes!
Yeah, no more ugly tricks necessary! Awesome!
While thinking about all that an interesting thought came to my mind. Will this lead to the creation of a Custom Entity Kit - thus a module that allows the creating of new entities like CCK and now core does for content types?
more.zites.net
Comments
update
Good stuff. Do you think the
>in theory, things could get better
Hmm these Drupal Entities