function imagecache_profiles_profile_alter in ImageCache Profiles 6
Implements hook_profile_alter().
Change the user profile picture to use the preferred imagecache preset.
File
- ./
imagecache_profiles.module, line 279
Code
function imagecache_profiles_profile_alter(&$account) {
if (isset($account->content['user_picture']['#value']) && ($preset = variable_get('user_picture_imagecache_profiles', ''))) {
$account->imagecache_preset = $preset;
$account->content['user_picture']['#value'] = theme('user_picture', $account);
}
}