aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-14 18:47:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-14 18:47:36 +0000
commitdf6648dbd2d88813c12a0f610a505d139905c653 (patch)
treee15831fc403150970ef9a09f4f6d8a9cd94df444
parent7b4a496f05fe94ab2ff8a420158e1c79cb4d61d4 (diff)
downloadelgg-df6648dbd2d88813c12a0f610a505d139905c653.tar.gz
elgg-df6648dbd2d88813c12a0f610a505d139905c653.tar.bz2
removed deprecated functions from these 3 plugins
git-svn-id: http://code.elgg.org/elgg/trunk@9075 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/externalpages/start.php2
-rw-r--r--mod/thewire/start.php15
-rw-r--r--mod/twitter/start.php2
3 files changed, 9 insertions, 10 deletions
diff --git a/mod/externalpages/start.php b/mod/externalpages/start.php
index 051da183a..1de4d5ec8 100644
--- a/mod/externalpages/start.php
+++ b/mod/externalpages/start.php
@@ -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() {
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 770f8bce0..0e6bd7794 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -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');
}
/**
diff --git a/mod/twitter/start.php b/mod/twitter/start.php
index c40f933c7..b793eadf0 100644
--- a/mod/twitter/start.php
+++ b/mod/twitter/start.php
@@ -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');