From c8f6c3c934df01bf969e3d91ae67f0887de10da9 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 10 Nov 2010 22:22:40 +0000 Subject: Fixes #2367: With fear and trepidation, converting events/plugin hooks to use elgg_ prefixed versions git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/annotations.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engine/lib/annotations.php') diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index 9ed9cf5f6..02e5bc6e0 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -88,7 +88,7 @@ $owner_guid, $access_id = ACCESS_PRIVATE) { $entity = get_entity($entity_guid); - if (trigger_elgg_event('annotate', $entity->type, $entity)) { + if (elgg_trigger_event('annotate', $entity->type, $entity)) { system_log($entity, 'annotate'); // If ok then add it @@ -98,7 +98,7 @@ $owner_guid, $access_id = ACCESS_PRIVATE) { if ($result !== false) { $obj = get_annotation($result); - if (trigger_elgg_event('create', 'annotation', $obj)) { + if (elgg_trigger_event('create', 'annotation', $obj)) { return $result; } else { // plugin returned false to reject annotation @@ -158,7 +158,7 @@ function update_annotation($annotation_id, $name, $value, $value_type, $owner_gu if ($result !== false) { $obj = get_annotation($annotation_id); - if (trigger_elgg_event('update', 'annotation', $obj)) { + if (elgg_trigger_event('update', 'annotation', $obj)) { return true; } else { // @todo add plugin hook that sends old and new annotation information before db access @@ -547,7 +547,7 @@ $viewtypetoggle = false) { * Returns a viewable list of entities from annotations. * * @param array $options - * + * * @see elgg_get_entities_from_annotations() * @see elgg_list_entities() * @@ -1021,7 +1021,7 @@ function delete_annotation($id) { $access = get_access_sql_suffix(); $annotation = get_annotation($id); - if (trigger_elgg_event('delete', 'annotation', $annotation)) { + if (elgg_trigger_event('delete', 'annotation', $annotation)) { remove_from_river_by_annotation($id); return delete_data("DELETE from {$CONFIG->dbprefix}annotations where id=$id and $access"); } @@ -1199,4 +1199,4 @@ function register_annotation_url_handler($function_name, $extender_name = "all") } /** Register the hook */ -register_plugin_hook("export", "all", "export_annotation_plugin_hook", 2); +elgg_register_plugin_hook_handler("export", "all", "export_annotation_plugin_hook", 2); -- cgit v1.2.3