The following issue lead to add a weight field to the {system} table.
http://drupal.org/node/42886

But how to use? How contrib modules can/should use the weight column in the system table? Updating the {system} table themselves from within the installation hook, the enable hook ?

Is it as simple as document the feature? ...or it is also required some kind of API to update the weight of a module?

Comments

morbus iff’s picture

I simply updated the table directly. See devel_update_1 in contrib/modules/devel/.

greggles’s picture

Status: Active » Fixed

This seems good enough to me:

db_query("UPDATE {system} SET weight = 88 WHERE name = 'devel'");

From http://cvs.drupal.org/viewcvs/drupal/contributions/modules/devel/devel.i...

Anonymous’s picture

Status: Fixed » Closed (fixed)