Status | ||||
---|---|---|---|---|
|
...
You'll need to implement hook_entity_property_info(). See this Drupal.org page and the contrib documentation for the hook for more details.
For an ECK-built or Already Existing Entity:
You'll need to implement hook_entity_property_info_alter(). Typically, the only alter that is necessary is changing the default "type" of the property to a Drupal entity type, the default getter/setter methods provided by the Entity module will do the rest, so you don't even need to write extra code. Here's an example:
Gister macro | ||
---|---|---|
|
...