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.

CommentFileSizeAuthor
media_gallery-devel-generate.patch2.11 KBmsonnabaum
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

helmo’s picture

Status: Active » Needs work
+++ b/media_gallery.drush.inc
@@ -0,0 +1,59 @@
+  $items['generate-media-images'] = array(
...
+    'aliases' => array('genmi'),

The 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

SocialNicheGuru’s picture

Issue summary: View changes

in 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

ivnish’s picture

Status: Needs work » Closed (outdated)