diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 14:48:29 +0000 |
commit | 5db7ae26689669479b327cd69b5c72ada3d819b9 (patch) | |
tree | 74b5beb5ee8e75df4d16e8fb0a2aa029644f49a5 /engine/lib/entities.php | |
parent | 005666d19b54d5aef654f96fd7b555d954cf425f (diff) | |
download | elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.gz elgg-5db7ae26689669479b327cd69b5c72ada3d819b9.tar.bz2 |
register_event_handler and trigger_event have been renamed to register_elgg_event_handler and trigger_elgg_event respectively.
git-svn-id: https://code.elgg.org/elgg/trunk@848 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index ea62da48f..f96a0a6f3 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -881,7 +881,7 @@ $entity = get_entity($guid); if ($entity->canEdit()) { - if (trigger_event('update',$entity->type,$entity)) { + if (trigger_elgg_event('update',$entity->type,$entity)) { $ret = update_data("UPDATE {$CONFIG->dbprefix}entities set owner_guid='$owner_guid', access_id='$access_id', time_updated='$time' WHERE guid=$guid"); // Handle cases where there was no error BUT no rows were updated! @@ -1086,7 +1086,7 @@ $guid = (int)$guid; if ($entity = get_entity($guid)) { - if (trigger_event('delete',$entity->type,$entity)) { + if (trigger_elgg_event('delete',$entity->type,$entity)) { if ($entity->canEdit()) { $entity->clearMetadata(); $entity->clearAnnotations(); @@ -1345,6 +1345,6 @@ register_plugin_hook("export", "all", "export_entity_plugin_hook", 0); /** Register init system event **/ - register_event_handler('init','system','entities_init'); + register_elgg_event_handler('init','system','entities_init'); ?> |