function _member_fields() { $output = array(); $output['rid'] = t('Roles'); $output['name'] = t('Username'); // profile fields if (module_exists('profile')) { if (module_exists('i18nprofile')) { $language = i18n_get_lang(); $result = db_query("SELECT p.name, t.title FROM {profile_fields} p INNER JOIN {i18n_profile_fields} t ON p.fid = t.fid WHERE t.language='%s' ORDER BY weight ASC, title ASC", $language); while($row = db_fetch_object($result)) { $output["profile.$row->name"] = $row->title; } } else { # $result = db_query("SELECT name,title FROM {profile_fields} WHERE visibility = %d ORDER BY weight ASC", PROFILE_PUBLIC_LISTINGS); $result = db_query("SELECT name, title FROM {profile_fields} pf ORDER BY weight ASC, title ASC"); while ($row = db_fetch_object($result)) { $output["profile.$row->name"] = $row->title; } } } $output['mail'] = t('Email'); $output['access'] = t('Last Seen'); $output['picture'] = t('Picture'); return $output; }