The Entity

For my GSoC project i need some new content type for hold events. After reading some books i guess i need to declare new entity type for calendar events.

It’s generally not necessary to create a new entity type. Nodes are still extremely
flexible, and more often than not can handle whatever use case we need. However,
there are cases where it is necessary to create separate entities rather than separate
node types, like for instance:

 

  • We may need entities that have entirely different permission handling or workflow than nodes, such as products in an e-commerce system.
  • We may be accessing entities that are not stored in Drupal’s local database,such as a legacy data store.
  • We may need to have internal variants, like node types, but nodes don’t support “sub-type types”.

The Schema API allows database-agnostic definition and manipulation of
the tables in Drupal’s SQL database.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s