entity_invoke

Versions
mediamosa-21
entity_invoke($op, $entity_type, $entity)

Invokes entity insert/update hooks.

Parameters

$op One of 'insert' or 'update'.

$entity_type The entity type; e.g. 'node' or 'user'.

$entity The entity object being operated on.

▾ 6 functions call entity_invoke()

comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
file_save in includes/file.inc
Save a file object to the database.
node_save in modules/node/node.module
Save changes to a node or add a new node.
taxonomy_term_save in modules/taxonomy/taxonomy.module
Save a term object to the database.
taxonomy_vocabulary_save in modules/taxonomy/taxonomy.module
Save a vocabulary given a vocabulary object.
user_save in modules/user/user.module
Save changes to a user account or add a new user.

Code

includes/common.inc, line 6470

<?php
function entity_invoke($op, $entity_type, $entity) {
  module_invoke_all('entity_' . $op, $entity, $entity_type);
}
?>