Replace our upload.module support with support for file and image fields. In the end, I expect to see no UI for this on the generate form, just like other Fields.

The code for this should be defined in devel_generate.fields.inc. See the functions there for examples.

The traditional image to use when no default has been specified is a random png from the misc dir with this code:

  $files = file_scan_directory(DRUPAL_ROOT. '/misc', '/^.*\.png$/');
  $source = $files[array_rand($files)];

Comments

moshe weitzman’s picture

Status: Active » Fixed

Committed, along with move of files to a subdir of devel and break out of all Field functionality into different includes.

Status: Fixed » Closed (fixed)

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