From 90b00a688fef440d364c3384f7453b29b152665b Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 7 Jan 2007 08:20:31 +0000 Subject: #80085: Don't show user picture form on registration pages (chx / webchick) --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 478a4053e..f278f468c 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1333,7 +1333,7 @@ function user_edit_form($uid, $edit, $register = FALSE) { } // Picture/avatar: - if (variable_get('user_pictures', 0)) { + if (variable_get('user_pictures', 0) && !$register) { $form['picture'] = array('#type' => 'fieldset', '#title' => t('Picture'), '#weight' => 1); $picture = theme('user_picture', (object)$edit); if ($picture) { -- cgit v1.2.3