Change $entity_type to $type in
$entity->foo = mymodule_add_something($entity, $entity_type);
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | hook_entity_loaddocexample_int.patch | 640 bytes | int |
| #7 | hook_entity_loaddocexample_newlines.patch | 617 bytes | nvanhove |
| #4 | hook_entity_loaddocexample.patch | 633 bytes | nvanhove |
| #2 | hook_entity_loaddocexample.patch | 633 bytes | nvanhove |
Comments
Comment #1
jhodgdonGood catch! This does need to be fixed in the example code for that hook doc.
http://api.drupal.org/api/function/hook_entity_load/7
Comment #2
nvanhove commentedHere's a patch.
Comment #4
nvanhove commentedand again, now hopefully with unix style newlines.
Comment #5
nvanhove commentedComment #7
nvanhove commentedI hate newlines.
Comment #8
int commentedSee it here: http://drupal.org/node/323
Comment #9
dries commentedCommitted to CVS HEAD. Thanks.