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.
It would be great to have images from external sites such as Lorempixum into content using devel generate, this patch is just a port of #1134986: Allow other modules to generate images for devel_generate for Filefield to be able to set the generating image function in Drupal 7 with Devel.
Please see Devel images provider module
Comment | File | Size | Author |
---|---|---|---|
#11 | 1238344-allow_external_images-11.patch | 2.05 KB | pcambra |
#4 | 1238344-allow_external_images-4.patch | 1.09 KB | pcambra |
#1 | 1238344-allow_external_images-1.patch | 985 bytes | pcambra |
Comments
Comment #1
pcambraComment #2
moshe weitzman CreditAttribution: moshe weitzman commentedLooks good. I think the var name should start with devel_generate_ and not image_
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedLets add a pointer to http://drupal.org/project/devel_image_provider from readme and project page.
Also, would be ideal to fallback to using devel for generation if the specified function does not exist.
Comment #4
pcambraGreat, here's a patch with more adecuate naming and a function_exists check to fallback to the default image generation by devel generate.
Comment #5
pcambraComment #6
alberto56 CreditAttribution: alberto56 commentedsubscribing.
Comment #7
loominade CreditAttribution: loominade commentedsubscribe
Comment #8
shiva7663 CreditAttribution: shiva7663 commentedsubscribe
Comment #9
salvisTry to reactivate the testbot.
Comment #10
salvisComment #11
pcambraI've added a section for extensions to devel generate in README.txt, the rest of the patch is the same as #4
Comment #12
moshe weitzman CreditAttribution: moshe weitzman commentedcommitted to 7.x and 8.x. Did not apply cleanly to 6.x
Sorry for the delay.