Attaching image files to nodes programmatically in Drupal 7

前端 未结 8 1516
耶瑟儿~
耶瑟儿~ 2020-12-07 14:07

Is it possible to add an image to a node programmatically?

8条回答
  •  轮回少年
    2020-12-07 14:32

    Yes, make it part of the $node object when you save it. Save it using node_save().

提交回复
热议问题