Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way to implement this, that someone can point me towards?
I'd like to setup a node edit form with a button to 'remove all' existing images. Is there an existing function, or best way to approach this, to make sure I find and remove the correct info?
Thanks
Comments
Comment #1
RAFA3L CreditAttribution: RAFA3L commentedAny idea?
Comment #2
quicksketchAt this point, we probably won't be adding new features to ImageField module. Code-wise, you simply need to remove the items from the $node object and the corresponding files will be deleted upon calling node_save().