aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/views
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-23 14:33:12 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-23 14:33:12 +0000
commit52a6050d1b4a7fae752019570bf2af521f4e2f6c (patch)
treea561c0cc433bd4c13f2cb16121a152621023bbb8 /mod/notifications/views
parentc8c02ae0a8a4cbb11c0d76386ab12fad73376aef (diff)
downloadelgg-52a6050d1b4a7fae752019570bf2af521f4e2f6c.tar.gz
elgg-52a6050d1b4a7fae752019570bf2af521f4e2f6c.tar.bz2
Added notification subscriptions page.
git-svn-id: https://code.elgg.org/elgg/trunk@2608 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/views')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/form.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/form.php b/mod/notifications/views/default/notifications/subscriptions/form.php
new file mode 100644
index 000000000..3533a6ac3
--- /dev/null
+++ b/mod/notifications/views/default/notifications/subscriptions/form.php
@@ -0,0 +1,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'
+ ));
+
+?> \ No newline at end of file