Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2012 at 20:27 UTC
Updated:
14 Mar 2012 at 22:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
bitkid commentedIn case you agree to that, here is a patch that adds that dependency.
Comment #2
quicksketchAh, yes a good point!
Though I'd probably prefer to make File module optional and just make the file component depend on it. Something like
if (module_exists('file')) {in webform_component_info(). At one point File module had actually become a required module for Drupal core, but fortunately that was rolled back.Comment #3
bitkid commentedI agree that that is a better way of doing it. Require a little rewrite of the function though. Not a biggie.
Here is the patch for that.
Comment #4
quicksketchThanks, committed to the D7 branch!