I noticed the wetkit user module uses the core user's module variable for the image style of the user's profile picture variable_get('user_picture_style', ''). This means I have to enable the core user picture (en/admin/config/people/accounts) and set the style in the settings. However, the user's profile then shows 2 uploads for a profile pic (when editing). Meaning, I have to then disable the picture so only the wetkit_users field shows up. This is misleading and somewhat confusing if I want to set or change the image style.

Would it be ok if we:
1 - Have the variable user_picture_style exposed elsewhere like in the wxt settings for the user (i.e.: en/admin/wetkit/wetkit_users).
2 - Use the default image style on the field (field_user_picture in en/admin/config/people/accounts/fields/field_user_picture)? This maybe problematic as it's in a feature and would mean it needs to be overridden for specific site customizations.

CommentFileSizeAuthor
#1 wetkit_users-2522698-1.patch947 bytesnatew
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

natew’s picture

FileSize
947 bytes

Here is a patch that adds the image style selection in en/admin/wetkit/wetkit_users

natew’s picture

Component: Code » WetKit Users
sylus’s picture

Status: Active » Reviewed & tested by the community

Makes sense to me thanks!

sylus’s picture

Status: Reviewed & tested by the community » Fixed

Committed and attributed!

Thx!

  • sylus committed f1932b2 on 7.x-4.x authored by natew
    Fixed WetKit Users for Issue #2522698 by natew: Wetkit users image style...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.