When enabling the Vkontakte submodule there is Picture field in the Vk Post content type. I have been trying to use "Extra field mappings" to map the posts image from the return object but I have not been succesfull since the return object contains all the attachments in a bit complicated way.
I would like to be able to get an image from vkontakte post to be saved to the node. Since all the attachments of the post are returned in one array maybe the first found image could be used.

Comments

thatguy created an issue. See original summary.

thatguy’s picture

pere orga’s picture

Status: Active » Needs work

Hi,

+    if (!empty($row->attachments)) {
+      $image;

Do you want to assign NULL to $image here?