aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/blog/start.php2
-rw-r--r--mod/bookmarks/start.php2
-rw-r--r--mod/file/start.php2
-rw-r--r--mod/friends/start.php2
-rw-r--r--mod/groups/start.php2
-rw-r--r--mod/messageboard/start.php2
-rw-r--r--mod/pages/start.php2
-rw-r--r--mod/tagcloud/start.php2
-rw-r--r--mod/thewire/start.php2
-rw-r--r--mod/twitter/start.php2
10 files changed, 10 insertions, 10 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index 8caffcb5f..374fe22d2 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -44,7 +44,7 @@ function blog_init() {
// Register for search.
register_entity_type('object', 'blog');
- //add_widget_type('blog', elgg_echo('blog'), elgg_echo('blog:widget:description'), 'profile, dashboard');
+ //elgg_register_widget_type('blog', elgg_echo('blog'), elgg_echo('blog:widget:description'), 'profile, dashboard');
// register actions
$action_path = elgg_get_plugin_path() . 'blog/actions/blog';
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php
index e3f7394d2..996421acf 100644
--- a/mod/bookmarks/start.php
+++ b/mod/bookmarks/start.php
@@ -31,7 +31,7 @@ function bookmarks_init() {
register_entity_url_handler('bookmark_url','object','bookmarks');
// Shares widget
- add_widget_type('bookmarks',elgg_echo("bookmarks"),elgg_echo("bookmarks:widget:description"));
+ elgg_register_widget_type('bookmarks',elgg_echo("bookmarks"),elgg_echo("bookmarks:widget:description"));
// Register entity type
register_entity_type('object','bookmarks');
diff --git a/mod/file/start.php b/mod/file/start.php
index 3b86dcdf0..c939877f5 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -40,7 +40,7 @@
register_page_handler('file','file_page_handler');
// Add a new file widget
- add_widget_type('filerepo',elgg_echo("file"),elgg_echo("file:widget:description"));
+ elgg_register_widget_type('filerepo',elgg_echo("file"),elgg_echo("file:widget:description"));
// Register a URL handler for files
register_entity_url_handler('file_url','object','file');
diff --git a/mod/friends/start.php b/mod/friends/start.php
index fe6a40c75..54675ee2f 100644
--- a/mod/friends/start.php
+++ b/mod/friends/start.php
@@ -8,7 +8,7 @@
*/
function friends_init() {
- add_widget_type('friends', elgg_echo("friends"), elgg_echo('friends:widget:description'));
+ elgg_register_widget_type('friends', elgg_echo("friends"), elgg_echo('friends:widget:description'));
}
elgg_register_event_handler('init', 'system', 'friends_init');
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 42f304d94..19cbbb74f 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -44,7 +44,7 @@
add_page_owner_handler('groups_page_owner_handler');
// Add some widgets
- add_widget_type('a_users_groups',elgg_echo('groups:widget:membership'), elgg_echo('groups:widgets:description'));
+ elgg_register_widget_type('a_users_groups',elgg_echo('groups:widget:membership'), elgg_echo('groups:widgets:description'));
//extend some views
diff --git a/mod/messageboard/start.php b/mod/messageboard/start.php
index 197504d0e..21b640c83 100644
--- a/mod/messageboard/start.php
+++ b/mod/messageboard/start.php
@@ -20,7 +20,7 @@ function messageboard_init() {
register_page_handler('messageboard', 'messageboard_page_handler');
// add a messageboard widget - only for profile
- add_widget_type('messageboard', elgg_echo("messageboard:board"), elgg_echo("messageboard:desc"), "profile");
+ elgg_register_widget_type('messageboard', elgg_echo("messageboard:board"), elgg_echo("messageboard:desc"), "profile");
// Register actions
$action_path = elgg_get_plugin_path() . 'messageboard/actions';
diff --git a/mod/pages/start.php b/mod/pages/start.php
index e8d49fe58..1e0c5bdc2 100644
--- a/mod/pages/start.php
+++ b/mod/pages/start.php
@@ -48,7 +48,7 @@ function pages_init() {
add_group_tool_option('pages',elgg_echo('groups:enablepages'),true);
//add a widget
- add_widget_type('pages',elgg_echo('pages'),elgg_echo('pages:widget:description'));
+ elgg_register_widget_type('pages',elgg_echo('pages'),elgg_echo('pages:widget:description'));
// For now, we'll hard code the groups profile items as follows:
// TODO make this user configurable
diff --git a/mod/tagcloud/start.php b/mod/tagcloud/start.php
index 444bf352f..6e6df0445 100644
--- a/mod/tagcloud/start.php
+++ b/mod/tagcloud/start.php
@@ -5,7 +5,7 @@
function tagcloud_init() {
- add_widget_type('tagcloud', elgg_echo('tagcloud:widget:title'), elgg_echo('tagcloud:widget:description'));
+ elgg_register_widget_type('tagcloud', elgg_echo('tagcloud:widget:title'), elgg_echo('tagcloud:widget:description'));
elgg_extend_view('css/screen', 'tagcloud/css');
}
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 92c3feca1..3eb172360 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -35,7 +35,7 @@
register_entity_url_handler('thewire_url','object','thewire');
// Your thewire widget
- add_widget_type('thewire',elgg_echo("thewire:read"),elgg_echo("thewire:yourdesc"));
+ elgg_register_widget_type('thewire',elgg_echo("thewire:read"),elgg_echo("thewire:yourdesc"));
// Register entity type
register_entity_type('object','thewire');
diff --git a/mod/twitter/start.php b/mod/twitter/start.php
index 2678f626f..f71af9430 100644
--- a/mod/twitter/start.php
+++ b/mod/twitter/start.php
@@ -13,7 +13,7 @@
elgg_extend_view('css/screen', 'twitter/css');
//add a widget
- add_widget_type('twitter',"Twitter","This is your twitter feed");
+ elgg_register_widget_type('twitter',"Twitter","This is your twitter feed");
}