Skip to content
Snippets Groups Projects
Commit c9c1d075 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

remove call to unl_theme/actions/login.php - that file had previously been...

remove call to unl_theme/actions/login.php - that file had previously been removed since it was just a duplicate of the core file
parent 1c56a564
Branches
Tags
No related merge requests found
<?php <?php
/* Initialize the theme */ /* Initialize the theme */
function unl_theme_init(){ function unl_theme_init()
{
//If user is signed into UNL SSO but not planet red and they visit planet red - try logging them in //If user is signed into UNL SSO but not planet red and they visit planet red - try logging them in
/* if ($_COOKIE['unl_sso'] && !isloggedin() && get_input('action') != 'login') { /* if ($_COOKIE['unl_sso'] && !isloggedin() && get_input('action') != 'login') {
$ts = time(); $ts = time();
...@@ -16,7 +16,8 @@ function unl_theme_init(){ ...@@ -16,7 +16,8 @@ function unl_theme_init(){
register_elgg_event_handler('init','system','unl_theme_init'); register_elgg_event_handler('init','system','unl_theme_init');
function unl_profileupdate () { function unl_profileupdate ()
{
/** /**
* Enroll user in group for their selected college when possible. * Enroll user in group for their selected college when possible.
**/ **/
...@@ -44,8 +45,7 @@ function unl_profileupdate () { ...@@ -44,8 +45,7 @@ function unl_profileupdate () {
$group_guid = $college_groups_guids[$college]; $group_guid = $college_groups_guids[$college];
$group = get_entity($group_guid); $group = get_entity($group_guid);
if ($group->join($user)) if ($group->join($user)) {
{
system_message(elgg_echo("groups:joined")); system_message(elgg_echo("groups:joined"));
// Remove any invite or join request flags // Remove any invite or join request flags
...@@ -56,11 +56,6 @@ function unl_profileupdate () { ...@@ -56,11 +56,6 @@ function unl_profileupdate () {
add_to_river('river/group/create','join',$user->guid,$group->guid); add_to_river('river/group/create','join',$user->guid,$group->guid);
} }
} }
} }
register_elgg_event_handler('profileupdate','all','unl_profileupdate'); register_elgg_event_handler('profileupdate','all','unl_profileupdate');
register_action("login",false,$CONFIG->pluginspath. "unl_theme/actions/login.php");
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment