[development] hook_schema() now in .install, not .schema

Yves Chedemois yched.drupal at free.fr
Tue Oct 9 00:54:48 UTC 2007


Quite true - I'd vote for _schema first, then _install/_uninstall, then 
_update_N.
_schema holds structural information about the module
_(un)install are 'only' operational,
_update_N is 'only' incidental (and meant to be read from bottom up anyway)

yched

Daniel F. Kudwien a ecrit le 09/10/2007 02:20:
> I guess that schema definitions can not be found quickly if a module has "a
> few" updates. So we should better define a guideline to put _install(),
> _uninstall() and _schema() to the top of the .install file, shouldn't we?
>
> regards,
>
> Daniel
>
>   



More information about the development mailing list