function fbconnect_profile_alter in Facebook Connect 6.2
Implements hook_profile_alter(). Change the user profile picture to use the preferred fbconnect preset.
File
- ./
fbconnect.module, line 812 - Integration with Facebook Connect API.
Code
function fbconnect_profile_alter(&$account) {
if ($preset = variable_get('fbconnect_pic_size_profile', '')) {
$account->fbconnect_picture_preset = $preset;
$account->content['user_picture']['#value'] = theme('user_picture', $account);
}
}