Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If pictures are enabled, the user edit page has two additional options: one to delete the current picture and one to upload a replacement picture. The delete option should only be shown if a picture already exists; if not the option is useless. This patch fixes this functionality.
Comment | File | Size | Author |
---|---|---|---|
delete_picture.patch | 910 bytes | ChrisKennedy | |
Comments
Comment #1
m1mic CreditAttribution: m1mic commentedTested with:
Patch works as advertised. Marking as RTBC.
Comment #2
Gábor HojtsyAgreed, committed. The previous code was dependent on the theme function returning an empty string if there is no picture, but this might not be the case if for example you have a default picture or would otherwise return a placeholder anyway if there is no picture.
Comment #3
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.