diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-16 20:07:57 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-16 20:07:57 +0000 |
commit | 638518f2ed3b48fc1d3b4d9d673b9efaddd129eb (patch) | |
tree | f1989b8a5a8000fd1294edbbfd0902ab336301f2 /engine/lib/elgglib.php | |
parent | 05692f4ea05bc3873e76a5d4ca3a4d75252a28de (diff) | |
download | elgg-638518f2ed3b48fc1d3b4d9d673b9efaddd129eb.tar.gz elgg-638518f2ed3b48fc1d3b4d9d673b9efaddd129eb.tar.bz2 |
Refs #2450: Changed preferred syntax for talking about hooks / events because :s are used in some names. Now using $name, $type.
git-svn-id: http://code.elgg.org/elgg/trunk@6945 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 44dfb61c4..cc6b6a591 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1057,7 +1057,7 @@ function events($event = "", $object_type = "", $function = "", $priority = 500, * @warning If you use the 'all' keyword, you must have logic in the handler function to * test the passed parameters before taking an action. * - * @tip When referring to events, the preferred syntax is "event:type". + * @tip When referring to events, the preferred syntax is "event, type". * * @param string $event The event type * @param string $object_type The object type @@ -1091,9 +1091,9 @@ function unregister_elgg_event_handler($event, $object_type, $function) { } /** - * Trigger an Elgg Event and run all handler functions registered to that event:type. + * Trigger an Elgg Event and run all handler functions registered to that event, type. * - * This function runs all handlers regsitered to $event:$object_type or + * This function runs all handlers regsitered to $event, $object_type or * the special keyword 'all' for either or both. * * $event is usually a verb: create, update, delete, annotation. @@ -1105,7 +1105,7 @@ function unregister_elgg_event_handler($event, $object_type, $function) { * @warning Elgg events should only be called by core. Plugin authors should use * {@link trigger_elgg_plugin_hook()} instead. * - * @tip When referring to events, the preferred syntax is "event:type". + * @tip When referring to events, the preferred syntax is "event, type". * * @internal Only rarely should events be changed, added, or removed in core. * When making changes to events, be sure to first create a ticket in trac. @@ -1239,7 +1239,7 @@ function unregister_plugin_hook($hook, $entity_type, $function) { /** * Trigger a Plugin Hook and run all handler functions registered to that hook:type. * - * This function runs all handlers regsitered to $hook:$type or + * This function runs all handlers regsitered to $hook, $type or * the special keyword 'all' for either or both. * * Use $params to send additional information to the handler functions. @@ -1415,7 +1415,7 @@ function elgg_log($message, $level='NOTICE') { * If $to_screen is true, $value is displayed to screen. Else, * it is handled by PHP's {@link error_log()} function. * - * A {@elgg_plugin_hook debug:log} is called. If a handler returns + * A {@elgg_plugin_hook debug log} is called. If a handler returns * false, it will stop the default logging method. * * @param mixed $value |