Used ECK to create a new entity type called 'model.'
Created relation type where a model bundle is one of the endpoints.
Edited a relation and hit save to get to the 'view' page of the relation, got an error about function model_view() not being found in relation_endpoint_field_formatter_view(), on line 277 of relation_endpoint.module.
Relation should run the function name through function_exists() before trying to call it.
In my case I have the Entity module installed, so I was able to put together a simple work around:
function model_view($entity, $view_mode) {
return entity_view('model', array($entity->id => $entity), $view_mode);
}
entity_view() is part of the Entity module.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1606736.patch | 1.1 KB | chx |
Comments
Comment #1
yuriy.babenko commentedComment #2
chx commentedPlease test.
Comment #4
chx commentedComment #5
chx commented#2: 1606736.patch queued for re-testing.
Comment #6
mikran commentedOhh this function has had fair share of bugs recently. I didn't have any experience with ECK before but nice to try new modules I guess. The patch works for what it's supposed to do. In the process I found other issues but I'll open new issue for that.
Comment #7
mikran commentedCommitted.
Comment #8.0
(not verified) commentedfixed typo