function hosting_db_server_nodeapi_server_presave in Hostmaster (Aegir) 6
Implementation of hook_nodeapi_TYPE_OP().
File
- modules/
hosting/ db_server/ hosting_db_server.module, line 49 - 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;
}
}
}