aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_groups_index/content.php
blob: 0557f874e5869bd7202aa48b79eebce5949dea99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
 
  $num_items = $vars['entity']->num_items;
  if (!isset($num_items)) $num_items = 10;
 
  $widget_context_mode = $vars['entity']->widget_context_mode;
  if (!isset($widget_context_mode)) $widget_context_mode = 'search';
  elgg_set_context($widget_context_mode);
 
  $widget_datas = elgg_list_entities(array(
		'type'=>'group',
		'limit'=>$num_items,
		'full_view' => false,
		'view_type_toggle' => false,
		'pagination' => false));
	
   

echo $widget_datas;
?>