[documentation] [Documentation task] How contrib modules should use the weight column in the system table?

greggles drupal-docs at drupal.org
Sun Dec 10 17:24:44 UTC 2006


Issue status update for 
http://drupal.org/node/48769
Post a follow up: 
http://drupal.org/project/comments/add/48769

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  markus_petrux
 Updated by:   greggles
-Status:       active
+Status:       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...




greggles



Previous comments:
------------------------------------------------------------------------

Fri, 10 Feb 2006 07:45:25 +0000 : markus_petrux

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 [1], the enable hook [2] ?


Is it as simple as document the feature? ...or it is also required some
kind of API to update the weight of a module?
[1] http://drupal.org/node/46422
[2] http://drupal.org/node/45831




------------------------------------------------------------------------

Fri, 10 Feb 2006 12:16:44 +0000 : Morbus Iff

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






More information about the documentation mailing list