Issue #2051787 by milesw: Document that caches should be cleared after calling field_attach_update().

merge-requests/26/head
David Rothstein 2013-12-30 20:12:15 -05:00
parent 9a0f281678
commit ccec3e9382
1 changed files with 6 additions and 0 deletions

View File

@ -976,6 +976,12 @@ function field_attach_insert($entity_type, $entity) {
/**
* Save field data for an existing entity.
*
* When calling this function outside an entity save operation be sure to
* clear caches for the entity:
* @code
* entity_get_controller($entity_type)->resetCache(array($entity_id))
* @endcode
*
* @param $entity_type
* The type of $entity; e.g. 'node' or 'user'.
* @param $entity