You are here

function fbconnect_user_edit_submit in Facebook Connect 5

Same name and namespace in other branches
  1. 6.2 fbconnect.module \fbconnect_user_edit_submit()
  2. 6 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.

File

./fbconnect.module, line 763
This module allows site visitors to connect and register with facebook account

Code

function fbconnect_user_edit_submit($form, &$form_state) {
  if ($form_state['picture_delete'] || $form_state['picture']) {
    if (is_numeric(arg(1))) {
      fbconnect_user_avatar_setting(arg(1), 0);
    }
  }
}