69,72c69 < < // This section is for the property browsing, for example all user from < // belgium. profile/arg(1)/arg(2) could be profile/profile_user/belgium < // --- > 127,132c124,129 < drupal_set_title( t( 'User List' ) ); < print theme( 'page', theme( 'profile_list' ) ); < < } < } < --- > // Compile a list of fields to show > $fields = array(); > $result = db_query('SELECT name, title, type FROM {profile_fields} WHERE visibility = %d', PROFILE_PUBLIC_LISTINGS); > while ($record = db_fetch_object($result)) { > $fields[] = $record; > } 134,146c131,132 < /** < * theme_profile_list < * < * This function was originally part of profile_browse but was separated < * to provide the ability to theme user lists. < */ < function theme_profile_list() { < // Compile a list of fields to show < $fields = array(); < $result = db_query('SELECT name, title, type FROM {profile_fields} WHERE visibility = %d', PROFILE_PUBLIC_LISTINGS); < while ($record = db_fetch_object($result)) { < $fields[] = $record; < } --- > // Extract the affected users: > $result = pager_query("SELECT uid FROM {users} WHERE uid > 0 ORDER BY changed DESC", 20, 0, NULL); 148,149c134,139 < // Extract the affected users: < $result = pager_query("SELECT uid FROM {users} WHERE uid > 0 ORDER BY changed DESC", 20, 0, NULL); --- > $output = '
'; > while ($account = db_fetch_object($result)) { > $output .= theme('profile_profile', user_load(array('uid' => $account->uid)), $fields); > } > $output .= '
'; > $output .= theme('pager', NULL, 20); 151,153c141,142 < $output = '
'; < while ($account = db_fetch_object($result)) { < $output .= theme('profile_profile', user_load(array('uid' => $account->uid)), $fields); --- > drupal_set_title(t('user list')); > print theme('page', $output); 155,159d143 < $output .= '
'; < $output .= theme('pager', NULL, 20); < < drupal_set_title(t('user list')); < return $output; 162d145 <