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

Files: 
CommentFileSizeAuthor
#11 1238344-allow_external_images-11.patch2.05 KBpcambra
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View
#4 1238344-allow_external_images-4.patch1.09 KBpcambra
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View
#1 1238344-allow_external_images-1.patch985 bytespcambra
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View

Comments

pcambra’s picture

Status: Active » Needs review
FileSize
985 bytes
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View
moshe weitzman’s picture

Status: Needs review » Needs work

Looks good. I think the var name should start with devel_generate_ and not image_

moshe weitzman’s picture

Lets 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.

pcambra’s picture

FileSize
1.09 KB
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View

Great, here's a patch with more adecuate naming and a function_exists check to fallback to the default image generation by devel generate.

pcambra’s picture

Status: Needs work » Needs review
alberto56’s picture

subscribing.

loominade’s picture

subscribe

shiva7663’s picture

subscribe

salvis’s picture

Status: Needs review » Needs work

Try to reactivate the testbot.

salvis’s picture

Status: Needs work » Needs review
pcambra’s picture

FileSize
2.05 KB
PASSED: [[SimpleTest]]: [MySQL] 2 pass(es). View

I've added a section for extensions to devel generate in README.txt, the rest of the patch is the same as #4

moshe weitzman’s picture

Status: Needs review » Fixed

committed to 7.x and 8.x. Did not apply cleanly to 6.x

Sorry for the delay.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.