From f3cb254cb7a7a8598db2b413b7a9a10e8febe87d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 8 Sep 2005 19:32:31 +0000 Subject: - Patch #23536 by chx: custom registration fields should appear on admin/user/create. --- modules/profile/profile.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/profile/profile.module') 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 { -- cgit v1.2.3