Posted by EclipseGc on June 30, 2009 at 2:43am
3 followers
| Project: | ImageField |
| Version: | 6.x-3.0-rc1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
hook_init() is not fired for modules being installed if they aren't installed along with all other modules during the primary batch process. imagefield_init() contains two module_load_include() calls and these probably need to be conditionally included in the module where needed instead of just at initialization time. This would allow them to be installed at any time in a profile, even outside of the main batch install procedure (wizards that allow you to choose additional modules at a later time for example).
Eclipse
Comments
#1
These files actually contain hook implementations (such as imagefield_file_delete(), imagefield_file_insert(), etc.), so the need to be available at all times. This patch should correct the problem by making the includes always pulled in no matter what, without using the database. FileField already uses this to make the file API funcitons available.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.