aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/relationship
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-03 18:40:48 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-03 18:40:48 +0000
commit3f5948d2d782d7cc7a13f88d58976ff26b3c0cc4 (patch)
tree4f2bba59c24c699e7d28942cbde9b2758cf47cb1 /views/default/river/relationship
parent4eff4a3c9ae8f062a72ca30bc578c14c3fa8c85c (diff)
downloadelgg-3f5948d2d782d7cc7a13f88d58976ff26b3c0cc4.tar.gz
elgg-3f5948d2d782d7cc7a13f88d58976ff26b3c0cc4.tar.bz2
Closes #2121 - removed view from pre-1.5 days
git-svn-id: http://code.elgg.org/elgg/trunk@6628 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river/relationship')
-rw-r--r--views/default/river/relationship/friend/create.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/views/default/river/relationship/friend/create.php b/views/default/river/relationship/friend/create.php
deleted file mode 100644
index f42bf30c6..000000000
--- a/views/default/river/relationship/friend/create.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-/**
- * Elgg relationship create event.
- * Display something in the river when a relationship is created.
- *
- * @package Elgg
- * @author Curverider Ltd
- * @link http://elgg.com/
- */
-
-$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