function _fb_user_install_set_weight in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_user.install \_fb_user_install_set_weight()
Usually it is best if fb_user_form_alter acts before third party modules. So, we lower the module weight here.
2 calls to _fb_user_install_set_weight()
- fb_user_install in ./
fb_user.install - Implement hook_install().
- fb_user_update_7001 in ./
fb_user.install - Lower weight of fb_user.module so that it's hooks will be invoked before third-party modules.
File
- ./
fb_user.install, line 37 - Install file for fb_user.module.
Code
function _fb_user_install_set_weight() {
db_query("UPDATE {system} SET weight=-1 WHERE name='fb_user'");
}