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.
Attached patch adds a drush command for generating media in galleries via devel generate.
So far it's just images, but they appear to be working ok.
Comment | File | Size | Author |
---|---|---|---|
media_gallery-devel-generate.patch | 2.11 KB | msonnabaum |
Comments
Comment #1
helmo CreditAttribution: helmo commentedThe name would conflict with a similar implementation in the media module, what about 'generate-media-gallery-images' aka 'genmgi'.
The media module has a related issue: #1198820: Support for Devel Generate in deprecated mediafield
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedin media 2 there is an error:
Fatal error: Call to undefined function _media_save_file_permenently() in d7/modules/all/media_gallery/media_gallery.drush.inc on line 55
Comment #3
ivnish CreditAttribution: ivnish commented