function restful_entity_delete in RESTful 7.2
Same name and namespace in other branches
- 7 restful.entity.inc \restful_entity_delete()
Implements hook_entity_delete().
File
- ./
restful.entity.inc, line 89 - Contains entity related code.
Code
function restful_entity_delete($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');
}