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 
13 
14 echo elgg_list_entities(array(
15  'type' => 'user',
16  'subtype'=> null,
17  'wheres' => array("ue.banned = 'yes'"),
18  'joins' => array("JOIN {$db_prefix}users_entity ue on ue.guid = e.guid"),
19  'full_view' => false,
20  'pagination' => false,
21  'limit' => $num_display
22 ));
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$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
if(!$num_display) $db_prefix
Definition: content.php:12