Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hook_entity_update($entity) {
- // Update the entity's entry in a fictional table of all entities.
- db_update('example_entity')
- ->fields(array('comment' => 1))
- ->condition('type', $entity->entityType())
- ->condition('id', $entity->id())
- ->execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement