aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:14:06 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:14:06 +0000
commitd8e7579df3f89587f1a43b64d9bd9a76b6842d5e (patch)
treecb610e400a5a4d47d2ad9a44f7942dc95fcd02e4 /engine
parent7f4e7c8a0a9bf500f9c888fc49aece9644fee8fd (diff)
downloadelgg-d8e7579df3f89587f1a43b64d9bd9a76b6842d5e.tar.gz
elgg-d8e7579df3f89587f1a43b64d9bd9a76b6842d5e.tar.bz2
Refs #2090 removed elgg_view_latest_comments() and replaced it with a page elements view
git-svn-id: http://code.elgg.org/elgg/trunk@8801 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/views.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index e74a286da..98edf1502 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1106,39 +1106,6 @@ function elgg_view_comments($entity, $add_comment = true, array $vars = array())
}
/**
- * View the latest comments on a user's content
- *
- * @todo - get_annotations is due to be rewritten so update code and possibly parameters
- *
- * @param <type> $owner_guid
- * @param <type> $type
- * @param <type> $subtype
- * @param <type> $number
- *
- * @return string
- * @since 1.8.0
- */
-function elgg_view_latest_comments($owner_guid, $type = 'object', $subtype = '', $number = 4) {
- $title = elgg_echo('generic_comments:latest');
- $options = array(
- 'annotation_name' => 'generic_comment',
- 'owner_guid' => $owner_guid,
- 'reverse_order_by' => true,
- 'limit' => $number
-
- );
- $comments = elgg_get_annotations($options);
-
- $body = elgg_view('page/components/list', array(
- 'items' => $comments,
- 'pagination' => false,
- 'list_class' => 'elgg-latest-comments',
- ));
-
- return elgg_view_module('aside', $title, $body);
-}
-
-/**
* Wrapper function for the image block display pattern.
*
* Fixed width media on the side (image, icon, flash, etc.).