Closed (fixed)
Project:
Entity cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 May 2011 at 10:18 UTC
Updated:
4 Jan 2014 at 00:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchSince entitycache isn't just able to implement hook_entity_update() and hook_entity_delete() due to inconsistencies in the core entities, it probably makes sense to provide this hook to save other modules having to figure out the same thing.
However, please add documentation to entitycache.api.php for the new hooks (I realise there is no docs in there for hook_entitycache_load() yet, will add those soon or happily commit a patch).
Also while I'm not sold on Drupal 7 hook groupings yet, not all sites will have entitycache module enabled - so it might be worth adding a group here so that code can be loaded only when needed (especially since cache resets only happen on requests doing CUD operations).
Comment #2
das-peter commentedThe api doc is up to date now.
Comment #3
das-peter commentedComment #4
catchThanks for this, needs tweaks for coding style though.
- line break is missing between function summary and @param
- for some reason (I don't know why) we don't state argument types in the @param line.
Otherwise looks great.
Comment #5
das-peter commented*grml* I always forget the thing with the param types - I'm used to add these because the Eclipse PDT autcomplete function ;).
^^ Same no type rule applies to returns too, right?
Comment #6
catchThanks. No type rule applies to return as well yeah.
Committed!