]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed deprecated functions from these 3 plugins
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 18:47:36 +0000 (18:47 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 18:47:36 +0000 (18:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9075 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/externalpages/start.php
mod/thewire/start.php
mod/twitter/start.php

index 051da183acb8695f299413588204ed9aafca0767..1de4d5ec830b8cbba14f3cbd2ab705fb0bcf6c3a 100644 (file)
@@ -3,7 +3,7 @@
  * Plugin for creating web pages for your site
  */
 
-register_elgg_event_handler('init', 'system', 'expages_init');
+elgg_register_event_handler('init', 'system', 'expages_init');
 
 function expages_init() {
 
index 770f8bce03b73bfb9c7d0734c9fd582652440fce..0e6bd77949c388c9cef0a85e0a1ffb1b870ccf29 100644 (file)
@@ -12,7 +12,7 @@
  * Nathan Koterba
  */
 
-register_elgg_event_handler('init', 'system', 'thewire_init');
+elgg_register_event_handler('init', 'system', 'thewire_init');
 
 /**
  * The Wire initialization
@@ -52,24 +52,23 @@ function thewire_init() {
        // Register a URL handler for thewire posts
        elgg_register_entity_url_handler('object', 'thewire', 'thewire_url');
 
-       // Your thewire widget
-       add_widget_type('thewire', elgg_echo('thewire'), elgg_echo("thewire:widget:desc"));
+       elgg_register_widget_type('thewire', elgg_echo('thewire'), elgg_echo("thewire:widget:desc"));
 
-       // Register entity type
+       // Register for search
        elgg_register_entity_type('object', 'thewire');
 
        // Register granular notification for this type
        register_notification_object('object', 'thewire', elgg_echo('thewire:notify:subject'));
 
        // Listen to notification events and supply a more useful message
-       register_plugin_hook('notify:entity:message', 'object', 'thewire_notify_message');
+       elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'thewire_notify_message');
 
        // Register actions
        $action_base = $CONFIG->pluginspath . 'thewire/actions';
-       register_action("thewire/add", false, "$action_base/add.php");
-       register_action("thewire/delete", false, "$action_base/delete.php");
+       elgg_register_action("thewire/add", "$action_base/add.php");
+       elgg_register_action("thewire/delete", "$action_base/delete.php");
 
-       register_plugin_hook('unit_test', 'system', 'thewire_test');
+       elgg_register_plugin_hook_handler('unit_test', 'system', 'thewire_test');
 }
 
 /**
index c40f933c7627a97cedf770c314b40c97c249d28b..b793eadf0dc3a7f02beeecbc4b3288846f9cb404 100644 (file)
@@ -6,7 +6,7 @@
  * @package ElggTwitter
  */
 
-register_elgg_event_handler('init', 'system', 'twitter_init');
+elgg_register_event_handler('init', 'system', 'twitter_init');
 
 function twitter_init() {
        elgg_extend_view('css/elgg', 'twitter/css');