Commit 5674b54f authored by Dries's avatar Dries

- Patch #664076 by nvanhove, int: fixed hook_entity_load() documentation example.

parent a0f3abf0
......@@ -213,7 +213,7 @@ function hook_entity_info_alter(&$entity_info) {
*/
function hook_entity_load($entities, $type) {
foreach ($entities as $entity) {
$entity->foo = mymodule_add_something($entity, $entity_type);
$entity->foo = mymodule_add_something($entity, $type);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment