diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 00:50:54 +0000 |
commit | 9c1e6d6463937bdee2d1de9735463a69f8af305d (patch) | |
tree | 8ae66e2c9533ebf21fcf6c1b96be58b140681b7b /mod/thewire/start.php | |
parent | 9f8dfe11118813e0f4c2808abb012171db61ec52 (diff) | |
download | elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.gz elgg-9c1e6d6463937bdee2d1de9735463a69f8af305d.tar.bz2 |
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
Diffstat (limited to 'mod/thewire/start.php')
-rw-r--r-- | mod/thewire/start.php | 24 |
1 files changed, 12 insertions, 12 deletions
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"); ?> |