Drupal set module weight

In Drupal, each module has something called weight. The weight, which is stored as an integer, determines when the module's code gets run. Sometimes, you want to alter something that another module does. In order to override another module, your module has to have a higher weight. There is nothing in the UI that lets you change a module's weight. You can set the weight by changing the value in the 'system' database column. To automate this,