function fbconnect_user_edit_submit in Facebook Connect 6
Same name and namespace in other branches
- 5 fbconnect.module \fbconnect_user_edit_submit()
- 6.2 fbconnect.module \fbconnect_user_edit_submit()
If the user deletes the photo or load a new picture, we deactivate the automatic import of the Facebook avatar.
1 string reference to 'fbconnect_user_edit_submit'
- fbconnect_form_alter in ./
fbconnect.module - Impletementation of hook_form_alter.
File
- ./
fbconnect.module, line 349
Code
function fbconnect_user_edit_submit($form, &$form_state) {
if ($form_state['values']['picture_delete'] || $form_state['values']['picture']) {
$user = user_load(arg(1));
$data['fb_avatar'] = 0;
user_save($user, $data);
drupal_set_message(t('Auto import of your facebook picture has been disabled'));
}
}