Index: imagecache.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v retrieving revision 1.68.2.8 diff -u -p -r1.68.2.8 imagecache.module --- imagecache.module 9 Jul 2008 02:58:07 -0000 1.68.2.8 +++ imagecache.module 9 Jul 2008 16:25:49 -0000 @@ -484,8 +484,19 @@ function imagecache_build_derivative($ac return true; } - +/** + * Implementation of hook_user(). + */ +function imagecache_user($op, &$edit, &$account, $category = NULL) { + // Flush cached old user picture. + if ($op == 'update' && $account->picture) { + imagecache_image_flush($account->picture); + } +} +/** + * Implementation of hook_imagefield_file(). + */ function imagecache_imagefield_file($op, $file) { switch ($op) { // Delete imagecache presets when imagecache images are deleted.