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

  • ClaudeClaudeAdministratorOneAll 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,

Sign In or Register to comment.