summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-08 19:32:31 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-08 19:32:31 +0000
commitf3cb254cb7a7a8598db2b413b7a9a10e8febe87d (patch)
treedc222eedf164fd8e1bebd0aa5a05da4128c2f733 /modules/profile/profile.module
parent2dddd9e5326be6da9ab3ebdfd8aef5b9a6e0199a (diff)
downloadbrdo-f3cb254cb7a7a8598db2b413b7a9a10e8febe87d.tar.gz
brdo-f3cb254cb7a7a8598db2b413b7a9a10e8febe87d.tar.bz2
- Patch #23536 by chx: custom registration fields should appear on admin/user/create.
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index ffef5f58a..60b0159c8 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -219,7 +219,7 @@ function profile_load_profile(&$user) {
}
function profile_save_profile(&$edit, &$user, $category) {
- if (($_GET['q'] == 'user/register') ? 1 : 0) {
+ if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') {
$result = db_query('SELECT fid, name, type FROM {profile_fields} WHERE register = 1 AND visibility != %d ORDER BY category, weight', PROFILE_HIDDEN);
}
else {
@@ -320,7 +320,7 @@ function _profile_form_explanation($field) {
function profile_form_profile($edit, $user, $category) {
- if (($_GET['q'] == 'user/register') ? 1 : 0) {
+ if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') {
$result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight');
}
else {
@@ -431,7 +431,7 @@ function _profile_map_month($month) {
function profile_validate_profile($edit, $category) {
- if (($_GET['q'] == 'user/register') ? 1 : 0) {
+ if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') {
$result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight');
}
else {