blob: 3533a6ac329c6acb182aa1d2578e0a96d9e2996b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
/**
* Elgg notifications plugin settings form
*
* @package ElggNotifications
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider Ltd
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.com/
*/
// Get subscriptions
$people = $vars['subscriptions'];
if (empty($people) || !is_array($people))
$people = array();
// Echo title
echo elgg_view_title(elgg_echo('notifications:subscriptions:changesettings'));
// Display a description
?>
<p>
<?php echo elgg_echo('notifications:subscriptions:description'); ?>
</p>
<?php
// Get the friends picker and load it with our people subscriptions
echo elgg_view('friends/picker',array(
'internalname' => 'subscriptions',
'entities' => get_user_friends($vars['user']->guid,'',9999,0),
'value' => $people,
'formtarget' => $vars['url'] . 'action/notificationsettings/save'
));
?>
|