Fragile during install profiles

EclipseGc - June 30, 2009 - 02:43
Project:ImageField
Version:6.x-3.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

quicksketch - July 3, 2009 - 20:29
Status:active» fixed

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.

AttachmentSize
imagefield_includes.patch 937 bytes

#2

System Message - July 17, 2009 - 20:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.