function hook_entity_update


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_entity_update($entity, $type)
cle7 system.api.php hook_entity_update($entity, $type)
elmsmedia7 system.api.php hook_entity_update($entity, $type)
icor7 system.api.php hook_entity_update($entity, $type)
meedjum_blog7 system.api.php hook_entity_update($entity, $type)
mooc7 system.api.php hook_entity_update($entity, $type)

Act on entities when updated.


$entity: The entity object.

$type: The type of entity being updated (i.e. node, user, comment).

Related topics

9 functions implement hook_entity_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

display_cache_entity_update in sites/all/modules/ulmus/display_cache/display_cache.module
Implements hook_entity_update().
entitycache_entity_update in sites/all/modules/ulmus/entitycache/entitycache.module
Implements hook_entity_update().
entityreference_entity_update in sites/all/modules/ulmus/entityreference/entityreference.module
Implements hook_entity_update().
entity_crud_hook_test_entity_update in modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_entity_update().
entity_test_entity_update in sites/all/modules/ulmus/entity/tests/entity_test.module
Implements hook_entity_update().

... See full list

8 invocations of hook_entity_update()
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
EntityAPIController::save in sites/all/modules/ulmus/entity/includes/
Implements EntityAPIControllerInterface.
field_attach_update in modules/field/
Save field data for an existing entity.
file_save in includes/
Saves a file object to the database.
taxonomy_vocabulary_save in modules/taxonomy/taxonomy.module
Saves a vocabulary.

... See full list


modules/system/system.api.php, line 350
Hooks provided by Drupal core and the System module.


function hook_entity_update($entity, $type) {
  // Update the entity's entry in a fictional table of all entities.
  $info = entity_get_info($type);
  list($id) = entity_extract_ids($type, $entity);
    'updated' => REQUEST_TIME,
  ))->condition('type', $type)->condition('id', $id)->execute();



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.