Skip to content

Commit

Permalink
changed: layout of start.php to be more inline with Elgg
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Sep 28, 2012
1 parent 5b0e865 commit e5a3bb6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ x.x:
- changed: group invitations (and add) no always goto mail
- changed: some logic when (re)inviting for better system messages to the users
- changed: discussion dasboard widget ordering to be inline with default Elgg
- changed: layout of start.php to be more inline with Elgg

2.3 (2012-07-31):

Expand Down
44 changes: 21 additions & 23 deletions start.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,27 @@ function group_tools_init(){
elgg_register_widget_type("discussion", elgg_echo("discussion:latest"), elgg_echo("widgets:discussion:description"), "index,dashboard", true);
elgg_register_widget_type("group_forum_topics", elgg_echo("discussion:group"), elgg_echo("widgets:group_forum_topics:description"), "groups");

// register events
elgg_register_event_handler("join", "group", "group_tools_join_group_event");

// register plugin hooks
elgg_register_plugin_hook_handler("widget_url", "widget_manager", "group_tools_widget_url_handler");
elgg_register_plugin_hook_handler("access:default", "user", "group_tools_access_default_handler");
elgg_register_plugin_hook_handler("access:collections:write", "user", "group_tools_access_write_handler");

// actions
elgg_register_action("group_tools/admin_transfer", dirname(__FILE__) . "/actions/admin_transfer.php");
elgg_register_action("group_tools/toggle_admin", dirname(__FILE__) . "/actions/toggle_admin.php");
elgg_register_action("group_tools/mail", dirname(__FILE__) . "/actions/mail.php");
elgg_register_action("group_tools/profile_widgets", dirname(__FILE__) . "/actions/profile_widgets.php");
elgg_register_action("group_tools/cleanup", dirname(__FILE__) . "/actions/cleanup.php");
elgg_register_action("group_tools/default_access", dirname(__FILE__) . "/actions/default_access.php");

elgg_register_action("group_tools/toggle_auto_join", dirname(__FILE__) . "/actions/toggle_auto_join.php", "admin");
elgg_register_action("group_tools/fix_auto_join", dirname(__FILE__) . "/actions/fix_auto_join.php", "admin");
elgg_register_action("group_tools/notifications", dirname(__FILE__) . "/actions/notifications.php", "admin");

elgg_register_action("groups/email_invitation", dirname(__FILE__) . "/actions/groups/email_invitation.php");
}

function group_tools_ready(){
Expand Down Expand Up @@ -227,26 +248,3 @@ function group_tools_version_1_3(){
elgg_register_event_handler("init", "system", "group_tools_init");
elgg_register_event_handler("ready", "system", "group_tools_ready");
elgg_register_event_handler("pagesetup", "system", "group_tools_pagesetup", 550);

// register events
elgg_register_event_handler("join", "group", "group_tools_join_group_event");

// register plugin hooks
elgg_register_plugin_hook_handler("widget_url", "widget_manager", "group_tools_widget_url_handler");
elgg_register_plugin_hook_handler("access:default", "user", "group_tools_access_default_handler");
elgg_register_plugin_hook_handler("access:collections:write", "user", "group_tools_access_write_handler");

// actions
elgg_register_action("group_tools/admin_transfer", dirname(__FILE__) . "/actions/admin_transfer.php");
elgg_register_action("group_tools/toggle_admin", dirname(__FILE__) . "/actions/toggle_admin.php");
elgg_register_action("group_tools/mail", dirname(__FILE__) . "/actions/mail.php");
elgg_register_action("group_tools/profile_widgets", dirname(__FILE__) . "/actions/profile_widgets.php");
elgg_register_action("group_tools/cleanup", dirname(__FILE__) . "/actions/cleanup.php");
elgg_register_action("group_tools/default_access", dirname(__FILE__) . "/actions/default_access.php");

elgg_register_action("group_tools/toggle_auto_join", dirname(__FILE__) . "/actions/toggle_auto_join.php", "admin");
elgg_register_action("group_tools/fix_auto_join", dirname(__FILE__) . "/actions/fix_auto_join.php", "admin");
elgg_register_action("group_tools/notifications", dirname(__FILE__) . "/actions/notifications.php", "admin");

elgg_register_action("groups/email_invitation", dirname(__FILE__) . "/actions/groups/email_invitation.php");

0 comments on commit e5a3bb6

Please sign in to comment.