diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-09-29 15:46:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-09-29 15:46:54 -0300 |
commit | 731e0f0feff53520cf68f8dbcbd0531303716221 (patch) | |
tree | a11021818a1f2e6967f75ba69ec261c2cb169b62 /mod/custom_index/index.php | |
parent | d3b655c485b370c9f2f94c7ba18e807b337ed5d4 (diff) | |
download | elgg-731e0f0feff53520cf68f8dbcbd0531303716221.tar.gz elgg-731e0f0feff53520cf68f8dbcbd0531303716221.tar.bz2 |
Adding latest activities into custom index
Diffstat (limited to 'mod/custom_index/index.php')
-rw-r--r-- | mod/custom_index/index.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php index 43cab9723..281a2ca1d 100644 --- a/mod/custom_index/index.php +++ b/mod/custom_index/index.php @@ -32,6 +32,10 @@ $thewire = elgg_list_entities($list_params); $list_params['subtype'] = 'file'; $files = elgg_list_entities($list_params); +//grab the latest files +$list_params['subtype'] = 'activity'; +$activities = elgg_list_entities($list_params); + //get the newest members who have an avatar $newest_members = elgg_list_entities_from_metadata(array( 'metadata_names' => 'icontime', @@ -63,6 +67,7 @@ $params = array( 'login' => $login, 'members' => $newest_members, 'thewire' => $thewire, + 'activities' => $activities, ); $body = elgg_view_layout('custom_index', $params); |