I'm working on a module that lets you define a new entity type with a data table as its base. This depends on the D7 port at #827000: Port Data Module to Drupal 7.

This means each entry in the table becomes an entity. Viewing and editing the entity is combined into a single form, and an edit link is provided for the data table views in data_ui module.

I think from here it would be possible to make these fieldable.

Comments

joachim’s picture

StatusFileSize
new11.81 KB

Here is a patch of my work so far.

joachim’s picture

Status: Active » Needs review
StatusFileSize
new17.54 KB

More work on this.

These are now fieldable.

There's a bug with the way the menu tabs go which I can't resolve -- see code comments in data_entity_entity_info() for the gory details.

digi24’s picture

Unfortunately, I am not using D7 yet, so I cannot review your patch, but your development is in my view exactly the way to go and I would like to thank you very much for the patches already provided.

joachim’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Fixed

I've committed this as two separate commits, one for basic entities, and one for fieldAPI.

fb6fd04e07 (- #1342294 by joachim: Added ability to add fields to data table entity types.)
6e1f864640 (- #1342294 by joachim: Added a module to create entity types and entities from tables.)

Follow-up issue: #1363600: fix FieldAPI admin UI paths

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

7wonders’s picture

How would I go about getting the full properties of the entity available to feeds entity processor http://drupal.org/node/1033202 or is that a feeds entity processor issue that it is only showing importer_id and temporary targets for the data entity?

7wonders’s picture

Issue summary: View changes

link d7 port