content.php 334 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * New users admin widget
  4. */
  5. $num_display = sanitize_int($vars['entity']->num_display, false);
  6. // set default value for display number
  7. if (!$num_display) {
  8. $num_display = 5;
  9. }
  10. echo elgg_list_entities(array(
  11. 'type' => 'user',
  12. 'subtype'=> null,
  13. 'full_view' => false,
  14. 'pagination' => false,
  15. 'limit' => $num_display
  16. ));