function hosting_package_update_6003 in Hosting 7.4
Same name and namespace in other branches
- 6.2 package/hosting_package.install \hosting_package_update_6003()
- 7.3 package/hosting_package.install \hosting_package_update_6003()
Implements hook_update_N().
The hostmaster and/or hostslave profiles no longer need to be status 0 as it prevents the main aegir site node from being edited. Instead, just hide the hostmaster/hostslave profiles in the site node form when creating new sites. See #599758
File
- package/
hosting_package.install, line 408 - Define database schema and update functions for the package management module.
Code
function hosting_package_update_6003() {
$ret = array();
$ret[] = update_sql("UPDATE {hosting_package} h JOIN {node} n ON n.nid = h.nid SET status = 1 WHERE h.short_name = 'hostmaster' OR h.short_name = 'hostslave'");
return $ret;
}