You are here

function restful_entity_update in RESTful 7.2

Same name and namespace in other branches
  1. 7 restful.entity.inc \restful_entity_update()

Implements hook_entity_update().

File

./restful.entity.inc, line 78
Contains entity related code.

Code

function restful_entity_update($entity, $type) {
  $hashes =& drupal_static('restful_entity_clear_hashes', array());
  $new_hashes = _restful_entity_cache_hashes($entity, $type);
  array_walk($new_hashes, '_restful_entity_clear_all_resources');
  $hashes += $new_hashes;
  restful_register_shutdown_function_once('restful_entity_clear_render_cache');
}