Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 13:04 UTC
Updated:
16 May 2011 at 12:02 UTC
Right now it looks like an entity module such as Profile2 has this choice:
- go with the views support EntityAPI provides, which may not do all it needs
- do everything itself
It would be better if Profile2 and other modules could build on EntityAPI's base rather than have to repeat it.
Comments
Comment #1
bojanz commentedMy patch at #1077148: add an entity-view row plugin allows you to override handlers (or disable them completely) from the property info of each column.
For everything else, there's hook_views_data_alter().
Comment #2
daften commentedsubscribe
Comment #3
fago>It would be better if Profile2 and other modules could build on EntityAPI's base rather than have to repeat it.
They can, just extend the provided controller class + specify that controller in hook entity info. That's the way it works for all the entity api controllers.