aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-09 19:56:01 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-09 19:56:01 +0000
commit5ba7b5810e4075d96943348aa5bba0946ada4755 (patch)
treeafe1c424190b8974ff0c5e8596761836a5b179fc
parent648d9e6aafc1c22fe65862ac714277ddac356097 (diff)
downloadelgg-5ba7b5810e4075d96943348aa5bba0946ada4755.tar.gz
elgg-5ba7b5810e4075d96943348aa5bba0946ada4755.tar.bz2
registered bookmarks widget
git-svn-id: http://code.elgg.org/elgg/trunk@8973 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/bookmarks/languages/en.php3
-rw-r--r--mod/bookmarks/start.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/mod/bookmarks/languages/en.php b/mod/bookmarks/languages/en.php
index e3f8cd64f..42865f8cf 100644
--- a/mod/bookmarks/languages/en.php
+++ b/mod/bookmarks/languages/en.php
@@ -52,8 +52,7 @@ $english = array(
/**
* Widget and bookmarklet
*/
- 'bookmarks:widget:description' =>
- "This widget displays your latest bookmarks.",
+ 'bookmarks:widget:description' => "Display your latest bookmarks.",
'bookmarks:bookmarklet:description' =>
"The bookmarks bookmarklet allows you to share any resource you find on the web with your friends, or just bookmark it for yourself. To use it, simply drag the following button to your browser's links bar:",
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php
index 600293b5a..2dc86bc1a 100644
--- a/mod/bookmarks/start.php
+++ b/mod/bookmarks/start.php
@@ -35,7 +35,9 @@ function bookmarks_init() {
elgg_extend_view('css/elgg', 'bookmarks/css');
elgg_extend_view('js/elgg', 'bookmarks/js');
-
+
+ elgg_register_widget_type('bookmarks', elgg_echo('bookmarks'), elgg_echo('bookmarks:widget:description'));
+
if (elgg_is_logged_in()) {
$user_guid = elgg_get_logged_in_user_guid();
$address = urlencode(current_page_url());