aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default/river/relationship/friend/create.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 01:08:23 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 01:08:23 +0000
commit7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26 (patch)
treeaa3afd1a6c4493ef463bc8c0e4d77a11942e081f /mod/riverdashboard/views/default/river/relationship/friend/create.php
parente634e03a412afdb4f31923b91b2af8efc0bb2be0 (diff)
downloadelgg-7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26.tar.gz
elgg-7c7dc0e249fb4afd1b0f4826bdbd27aa5d9f2a26.tar.bz2
updated the river friend view for the new river code
git-svn-id: http://code.elgg.org/elgg/trunk@7649 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default/river/relationship/friend/create.php')
-rw-r--r--mod/riverdashboard/views/default/river/relationship/friend/create.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/mod/riverdashboard/views/default/river/relationship/friend/create.php b/mod/riverdashboard/views/default/river/relationship/friend/create.php
deleted file mode 100644
index 916efd407..000000000
--- a/mod/riverdashboard/views/default/river/relationship/friend/create.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Elgg relationship create event.
- * Display something in the river when a relationship is created.
- */
-
-$statement = $vars['statement'];
-
-$performed_by = $statement->getSubject();
-$event = $statement->getEvent();
-$object = $statement->getObject();
-
-if (is_array($object)) {
- switch ($object['relationship']) {
- // Friending
- case 'friend' :
- case 'friends' : // 'friends' shouldn't be used, but just incase :)
-
- // Get second object
- $userb = $object['object'];
-
- // Only users can be friends
- if (($performed_by instanceof ElggUser) && ($userb instanceof ElggUser)) {
- // User A
- echo "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a> ";
-
- // Verb
- echo elgg_echo('river:relationship:friend');
-
- // user B
- echo " <a href=\"{$userb->getURL()}\">{$userb->name}</a>";
- }
-
- break;
- }
-} \ No newline at end of file