Closed (fixed)
Project:
Devel
Version:
7.x-1.x-dev
Component:
devel
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2010 at 02:50 UTC
Updated:
11 Feb 2010 at 21:10 UTC
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
Comment #1
moshe weitzman commentedCommitted, along with move of files to a subdir of devel and break out of all Field functionality into different includes.