From 5db7ae26689669479b327cd69b5c72ada3d819b9 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 10 Jun 2008 14:48:29 +0000 Subject: 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 --- engine/lib/elgglib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index eb4cd97df..e7e3abc12 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -620,13 +620,13 @@ * * You can then simply register them using the following function. Optionally, this can be called with a priority nominally from 0 to 1000, where functions with lower priority values are called first (note that priorities CANNOT be negative): * - * register_event_handler($event, $object_type, $function_name [, $priority = 500]); + * register_elgg_event_handler($event, $object_type, $function_name [, $priority = 500]); * * Note that you can also use 'all' in place of both the event and object type. * * To trigger an event properly, you should always use: * - * trigger_event($event, $object_type [, $object]); + * trigger_elgg_event($event, $object_type [, $object]); * * Where $object is optional, and represents the $object_type the event concerns. This will return true if successful, or false if it fails. * @@ -713,7 +713,7 @@ * @param string $function The function name * @return true|false Depending on success */ - function register_event_handler($event, $object_type, $function, $priority = 500) { + function register_elgg_event_handler($event, $object_type, $function, $priority = 500) { return events($event, $object_type, $function, $priority); } @@ -725,7 +725,7 @@ * @param string $function The function name * @return true|false Depending on success */ - function trigger_event($event, $object_type, $object = null) { + function trigger_elgg_event($event, $object_type, $object = null) { $return = true; $return1 = events($event, $object_type, "", null, true, $object); if (!is_null($return1)) $return = $return1; @@ -1147,7 +1147,7 @@ { // Test to see if we can actually execute code by calling any other functions - if (trigger_event("execute_privileged_codeblock", "all")) + if (trigger_elgg_event("execute_privileged_codeblock", "all")) { // Execute $result = null; -- cgit v1.2.3