'subgroups/owner/' . $owner->guid, 'text' => elgg_echo('subgroups:more'), 'is_trusted' => true, )); $params = array( 'type' => 'group', 'container_guid' => $owner->guid, 'limit' => $limit, 'types' => 'group', 'list_type' => 'gallery', 'gallery_class' => 'elgg-gallery-groups', 'full_view' => false ); $params['count'] = true; if(elgg_get_entities($params) == 0) { return true; } $params['count'] = false; $body = elgg_list_entities($params); $body .= "
$all_link
"; echo elgg_view_module('aside', elgg_echo('subgroups'), $body);