26 Sep
2006
26 Sep
'06
4:39 p.m.
Moshe Weitzman wrote But we do have .install files now so my proposal is that modules which require loading during bootstrap perform an UPDATE system SET bootstrap=1 WHERE module=<foo> during their hook_install(). I would suggest a function call instead of SQL, that way it is independent of the implementation. Something like drupal_load_during_bootstrap($flag = FALSE). So a module that needs to be loaded during bootstrap would in the .install file do a call like this drupal_load_during_bootstrap(TRUE); The only reason for the argument is if at some point in the when the module is upgraded it no longer needs to be loaded during bootstrap it can call the function with a value of FALSE.