function hosting_web_server_insert in Hosting 5
Implementation of hook_insert().
1 call to hosting_web_server_insert()
- hosting_web_server_update in web_server/
hosting_web_server.module - Implementation of hook_update().
File
- web_server/
hosting_web_server.module, line 294 - Web server node type is defined here.
Code
function hosting_web_server_insert($node) {
db_query("INSERT INTO {hosting_web_server} (vid, nid, ip_address, script_user, web_group, config_path, backup_path, restart_cmd, drush_path) \n VALUES (%d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $node->vid, $node->nid, $node->ip_address, $node->script_user, $node->web_group, $node->config_path, $node->backup_path, $node->restart_cmd, $node->drush_path);
}