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.
Gravatar has at some point when I last checked added two new default picture settings: Mystery Man, and Retro.
http://en.gravatar.com/site/implement/images/
Comment | File | Size | Author |
---|---|---|---|
#2 | 1014634-gravatar-newdefault-d7update.patch | 18.85 KB | Dave Reid |
#1 | 1014634-gravatar-mysteryman-retro-defaults.patch | 7.05 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Dave ReidSo much stuff to catch up with in D7.
1. We have to make our own Gravatar size setting because the user picture system in D7 uses image.module which only has a 'maximum' user picture size not an 'ideal' user picture size. If we re-used that we'd end up with huge user pictures since the default is 1024x1024.
2. Had to add gravatar_user_presave() in order to save data into $account->data['gravatar']. Data storage also moved from $account->gravatar to $account->data['gravatar'].
3. Lots and lots of cleanups.
Comment #3
Dave Reidcommitted #2 + bonus to CVS and also backported to D6.
http://drupal.org/cvs?commit=474398
http://drupal.org/cvs?commit=474402