Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
22 Feb 2009 at 06:28 UTC
Updated:
12 Mar 2009 at 19:00 UTC
Jump to comment: Most recent file
Enabling the default image support needs to happen through a function that other modules and installation profiles can use. Right now, UberDrupal redirects to admin/store during the installation process, because default image support is enabled through a page callback that assumes you want the redirect. Instead, there should be a separate page callback that calls the API function to enable image support. The API function itself should be in uc_product.module.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | imagecache_api.patch | 5.36 KB | Island Usurper |
Comments
Comment #1
Island Usurper commentedThe code in that page callback looks robust enough to be used in uc_product_enable() as well, because it shouldn't create duplicate presets for the catalog module. The new function's name is uc_product_add_imagecache_presets().
Comment #2
rszrama commentedReviewed... looks good. Added a small notification message and committed.