mod/gc_newsfeed/start.php 1 location
|
@@ 17-22 (lines=6) @@
|
14 |
|
|
15 |
|
function newsfeed_init(){ |
16 |
|
//set up metadata for user's landing page preference |
17 |
|
if(elgg_is_logged_in()){ |
18 |
|
$user = elgg_get_logged_in_user_entity(); |
19 |
|
if(!isset($user->landingpage)){ |
20 |
|
$user->landingpage = 'news'; |
21 |
|
} |
22 |
|
} |
23 |
|
|
24 |
|
//Register newsfeed page handler |
25 |
|
elgg_register_page_handler('newsfeed', 'newsfeed_page_handler'); |
mod/wet4/start.php 1 location
|
@@ 220-225 (lines=6) @@
|
217 |
|
|
218 |
|
|
219 |
|
//set up metadata for user's landing page preference |
220 |
|
if (elgg_is_logged_in()) { |
221 |
|
$user = elgg_get_logged_in_user_entity(); |
222 |
|
if (!isset($user->landingpage)) { |
223 |
|
$user->landingpage = 'news'; |
224 |
|
} |
225 |
|
} |
226 |
|
|
227 |
|
//save new user settings on landing page |
228 |
|
elgg_register_plugin_hook_handler('usersettings:save', 'user', '_elgg_set_landing_page'); |