diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.api.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 2563728f0..78cc24e2a 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -221,6 +221,32 @@ function hook_entity_load($entities, $type) { } /** + * Act on entities when inserted. + * + * Generic insert hook called for all entity types via entity_invoke(). + * + * @param $entity + * The entity object. + * @param $type + * The type of entity being inserted (i.e. node, user, comment). + */ +function hook_entity_insert($entity, $type) { +} + +/** + * Act on entities when updated. + * + * Generic update hook called for all entity types via entity_invoke(). + * + * @param $entity + * The entity object. + * @param $type + * The type of entity being updated (i.e. node, user, comment). + */ +function hook_entity_update($entity, $type) { +} + +/** * Define administrative paths. * * Modules may specify whether or not the paths they define in hook_menu() are |