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

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited July 2018

    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,

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

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