Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity API
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2010 at 19:01 UTC
Updated:
25 Jan 2010 at 14:00 UTC
* Take ctools exportables and port them straight to hook_entity_info().
* Use the controller to load objects defined in code too.
Comments
Comment #1
fagoDone, see http://github.com/fago/entity/commit/e3911f0304622add50de7badf3c656ecd63...
* There is new flag controlling whether an entity is exportable: $entity_info['exportable']
* It's possible to specify a 'name key' now, so entities may also have string based identifiers, while internally (e.g. by the field API) the numeric id is used.
* Defaults are automatically incorporated by the entity loader.
* $entity_info['export'] can be used to define further properties as known by ctools exportables.
* Whether entities are defined in code/db is written to $entity->status by default, but that's configurable.
* The "can disable" feature of ctools that allows disabling exportables defined in code with a variable(_get) is currently not supported.
* I enhanced the test module to test exportables and improved profile2 to make use of it for defining profile types in code.
Comment #2
fagoalso see #681362: d7: Support exportable entities