function hosting_db_server_nodeapi_server_presave in Hosting 7.4
Same name and namespace in other branches
- 6.2 db_server/hosting_db_server.module \hosting_db_server_nodeapi_server_presave()
- 7.3 db_server/hosting_db_server.module \hosting_db_server_nodeapi_server_presave()
Implements hook_nodeapi_TYPE_OP().
File
- db_server/
hosting_db_server.module, line 67 - Allow Hostmaster to configure database servers.
Code
function hosting_db_server_nodeapi_server_presave(&$node) {
if (empty($node->db_passwd) && !empty($node->nid)) {
$old = node_load($node->nid);
if (isset($old->db_passwd)) {
$node->db_passwd = $old->db_passwd;
}
}
}