These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform. The forums are run by the community and moderated by the OneAll team during office hours.
Please stick to technical issues - and remember, no confidential information - these are public forums!

How to save social image to a custom image field.

Dear Oneall.

Is there a way to save the social profile image to another field than the standard user image field in drupal 7.xx?

Best regards
Espen

Answers

  • edited July 24

    Hello,

    you can open this file:

    ./vendor/drupal/social_login/social_login.module
    

    The picture is assigned by this code:

    // Update user record.
    $account->user_picture = $real_file;
    $account->save();
    

    So you would have to patch that section.

    Regards,

Sign In or Register to comment.

Welcome!

Please sign in to your OneAll account to take part in the discussions.

Please click on the link below to connect to the forum with your OneAll account.