function hosting_update_6014 in Hosting 6.2
Same name and namespace in other branches
- 7.4 hosting.install \hosting_update_6014()
- 7.3 hosting.install \hosting_update_6014()
Implements hook_update_N().
Restore proper weight to the hosting module.
For some obscure reason, the weight is 10 which makes its updates run after all others, which gave us constant issues during upgrades.
File
- ./
hosting.install, line 361 - Install, update and uninstall for the hosting module.
Code
function hosting_update_6014() {
$ret = array();
$ret[] = update_sql("UPDATE {system} SET weight = 0 WHERE type='module' and name='hosting'");
return $ret;
}