From 9c1e6d6463937bdee2d1de9735463a69f8af305d Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 24 Nov 2010 00:50:54 +0000 Subject: Fixes #2655: Converted register_action to elgg_register_action throughout core git-svn-id: http://code.elgg.org/elgg/trunk@7432 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/start.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mod/thewire') diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 31bad5809..d66f0ca14 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -28,7 +28,7 @@ // Extend system CSS with our own styles, which are defined in the thewire/css view elgg_extend_view('css','thewire/css'); - //extend views + //extend views elgg_extend_view('profile/status', 'thewire/profile_status'); // Register a page handler, so we can have nice URLs @@ -38,8 +38,8 @@ register_entity_url_handler('thewire_url','object','thewire'); // Your thewire widget - add_widget_type('thewire',elgg_echo("thewire:read"),elgg_echo("thewire:yourdesc")); - + add_widget_type('thewire',elgg_echo("thewire:read"),elgg_echo("thewire:yourdesc")); + // Register entity type register_entity_type('object','thewire'); @@ -159,17 +159,17 @@ // Set its description appropriately $thewire->description = elgg_substr(strip_tags($post), 0, 160); - // add some metadata - $thewire->method = $method; //method, e.g. via site, sms etc - $thewire->parent = $parent; //used if the note is a reply - - //save + // add some metadata + $thewire->method = $method; //method, e.g. via site, sms etc + $thewire->parent = $parent; //used if the note is a reply + + //save $save = $thewire->save(); if($save) add_to_river('river/object/thewire/create','create',$SESSION['user']->guid,$thewire->guid); - - return $save; + + return $save; } @@ -199,7 +199,7 @@ // Register actions global $CONFIG; - register_action("thewire/add",false,$CONFIG->pluginspath . "thewire/actions/add.php"); - register_action("thewire/delete",false,$CONFIG->pluginspath . "thewire/actions/delete.php"); + elgg_register_action("thewire/add", $CONFIG->pluginspath . "thewire/actions/add.php"); + elgg_register_action("thewire/delete", $CONFIG->pluginspath . "thewire/actions/delete.php"); ?> -- cgit v1.2.3