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.
Asset should provide its own generation handling as we have have "Generate content", "Generate users", "Generate terms", we should have "Generate assets" and then entityreference support for devel generate should do the rest
Comment | File | Size | Author |
---|---|---|---|
#4 | asset-devel-generate-1959820-5.patch | 2.75 KB | IRuslan |
#4 | asset-devel-generate-1959820-4.patch | 9.61 KB | IRuslan |
#3 | 1959820-4-asset_generate.patch | 13.14 KB | SebCorbin |
#2 | 1959820-3-asset_generate.patch | 13.13 KB | SebCorbin |
#1 | 1959820-2-asset_generate.patch | 11.34 KB | SebCorbin |
Comments
Comment #1
SebCorbin CreditAttribution: SebCorbin commentedAnd here's a patch.
Tested for Video and Image asset types so far.
Video modules other than youtube need to implement hook_emvideo_generate() that return a random video url.
Comment #2
SebCorbin CreditAttribution: SebCorbin commentedAnd here the patch with a drush command
Comment #3
SebCorbin CreditAttribution: SebCorbin commentedModified the default thumbnail to mqdefault (better ratio and quality), also split the video url before '?' character
Comment #4
IRuslan CreditAttribution: IRuslan commentedHi Sebastien,
We checked your patch and seems it's good (i only simply append package = "Media assets" to info file, and small fix about random asset author) . For other video modules i created ticket #2318367: Add support for devel generate video types (except youtube)
Attached new patches/committed to dev.