function og_list_users_faces_page in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_list_users_faces_page()
- 5.2 og.module \og_list_users_faces_page()
- 5.3 og.module \og_list_users_faces_page()
- 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
File
- ./
og.module, line 985
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;
}