diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-19 12:49:29 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-19 12:49:29 +0000 |
commit | 9026d48d405ba43dc6218ecfe34f6dfeb7b16104 (patch) | |
tree | fa6c03fea00993fc4e9635b2a6acef3e27b8a665 /mod/river/start.php | |
parent | 5893eaf6588ce7b6823fa78f54c0042983389162 (diff) | |
download | elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.gz elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.bz2 |
Fixed #50: River widgets
http://trac.elgg.org/elgg/ticket/50
git-svn-id: https://code.elgg.org/elgg/trunk@992 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/river/start.php')
-rw-r--r-- | mod/river/start.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/river/start.php b/mod/river/start.php new file mode 100644 index 000000000..a745bc699 --- /dev/null +++ b/mod/river/start.php @@ -0,0 +1,23 @@ +<?php + /** + * Elgg river plugin. + * This function + * + * @package ElggRiver + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ + + /** + * Initialise the river system and add a widget. + */ + function river_init() + { + add_widget_type('river_widget',sprintf(elgg_echo('river:widget:title'), 'Your'), elgg_echo('river:widget:description')); + add_widget_type('river_widget_friends',sprintf(elgg_echo('river:widget:title:friends'), 'Your'), elgg_echo('river:widget:description:friends')); + } + + register_elgg_event_handler('init','system','river_init'); +?>
\ No newline at end of file |