getGUID()); } // Get all objects that has any of the groups as container if ( count($all_groups) > 0 ) { $returned = get_entities("object", "", $all_groups , 'time_updated desc', $limit, $offset, false, 0, $all_groups ); return $returned; } return array(); } function ke_view_user_groups_activity($guid, $limit= 10, $offset = 0) { global $CONFIG; $activity = get_user_groups_activity($guid, $limit, $offset = 0); $info = ""; foreach ($activity as $act) { $owner = $act->getOwnerEntity(); $friendlytime = friendly_time($act->time_updated); $subtype = $act->getSubType(); $group = $act->getContainerEntity(); $subarray = array( blog => 'Blog',// TODO see if we need this one page => 'Page', page_top => 'Page', file => 'File', bulletin => 'Bulletin',// TODO see if we need this one groupforumtopic => 'Forum Topic', messageboard => 'Message', ); // TODO see if there are any different icons to use here $icon_array = array( blog => 'blog',// TODO see if we need this one page => 'page', page_top => 'page_top', file => 'file', bulletin => 'file',// TODO see if we need this messageboard => 'file', ); $info .= '
getURL()}\" title=\"{$group->name}\">{$group->name}
"; if($subtype == 'groupforumtopic') $info .= "wwwroot . "mod/groups/topicposts.php?topic={$act->guid}&group_guid={$act->container_guid}\">{$act->title}
";
else
$info .= "
getURL()}\">{$act->title}
";
$info .= "{$sub_array[$subtype]} " . elgg_echo("by") . " getURL()}\">{$owner->name} ({$friendlytime})