You are here

function og_list_users_faces_page in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og.module \og_list_users_faces_page()
  2. 5 og.module \og_list_users_faces_page()
  3. 5.2 og.module \og_list_users_faces_page()
  4. 5.7 og.module \og_list_users_faces_page()
1 call to og_list_users_faces_page()
og_panels_ct_render_callback_faces in includes/groupcontent.inc
1 string reference to 'og_list_users_faces_page'
og_menu in ./og.module

File

./og.module, line 991

Code

function og_list_users_faces_page($gid, $column_count = 5, $row_count = 10, $pager_id = 0) {
  $max_per_page = $row_count * $column_count;
  $sql = og_list_users_sql(1, 0, 'ou.is_admin DESC, u.picture DESC, u.name ASC');

  /* list group admins first, members with pics second, regular members last.  Alphabetize within each of these categories */
  $result = pager_query($sql, $max_per_page, $pager_id, NULL, $gid);
  $output = theme('og_picture_grid', $result, $column_count);
  $output .= theme('pager', NULL, $max_per_page, $pager_id);
  return $output;
}