Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
content.php
Go to the documentation of this file.
1 <?php
6 $num_display = sanitize_int($vars['entity']->num_display, false);
7 // set default value for display number
8 if (!$num_display) {
9  $num_display = 5;
10 }
11 
12 echo elgg_list_entities(array(
13  'type' => 'user',
14  'subtype'=> null,
15  'full_view' => false,
16  'pagination' => false,
17  'limit' => $num_display
18 ));
$num_display
Banned users admin widget.
Definition: content.php:6
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:382
$vars['title']
Definition: content.php:19
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:180