function entity_load_unchanged

cis7 entity_load_unchanged($entity_type, $id)
cle7 entity_load_unchanged($entity_type, $id)
elmsmedia7 entity_load_unchanged($entity_type, $id)
icor7 entity_load_unchanged($entity_type, $id)
meedjum_blog7 entity_load_unchanged($entity_type, $id)
mooc7 entity_load_unchanged($entity_type, $id)

Loads the unchanged, i.e. not modified, entity from the database.

Unlike entity_load() this function ensures the entity is directly loaded from the database, thus bypassing any static cache. In particular, this function is useful to determine changes by comparing the entity being saved to the stored entity.


$entity_type: The entity type to load, e.g. node or user.

$id: The ID of the entity to load.

Return value

The unchanged entity, or FALSE if the entity cannot be loaded.

8 calls to entity_load_unchanged()
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.
EntityAPIControllerExportable::save in sites/all/modules/ulmus/entity/includes/
Overridden to care exportables that are overridden.
file_save in includes/
Saves a file object to the database.
node_save in modules/node/node.module
Saves changes to a node or adds a new node.

... See full list


includes/, line 7823
Common functions that many Drupal modules will need to reference.


function entity_load_unchanged($entity_type, $id) {
  $result = entity_get_controller($entity_type)->load(array($id));
  return reset($result);



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.