Set a module weight using its .install file
Key words and phrases:
module weight setting
make module run after other modules
change the weight of your module
Description & Info:
in placement.install
<?php
function placement_install() {
db_query("UPDATE {system} SET weight = 10 WHERE name = 'placement'");
}
?>The query is the same in both MySQL and PostgreSQL so for these databases (which are what Drupal core supports) this does not need to be placed in a switch statement.
Post new comment
