, , , ,

How to save image(from external image URL) in Profile2 module in Drupal 7 image field programmatically?

January 15, 2016

drupal

Profile2 module is used if you want to store some additional info about the your in his/her profile like interests , occupation etc. i.e. the fields that are not given by default in drupal user profiles. You can also add image field or some field for moderation etc. Here in this example I am showing how to update image_field of profile2 programmatically and save image from external link.

 

Have your say