You are here

function hosting_platform_insert in Hostmaster (Aegir) 6

Implementation of hook_insert().

1 call to hosting_platform_insert()
hosting_platform_update in modules/hosting/platform/hosting_platform.module
Implementation of hook_update().

File

modules/hosting/platform/hosting_platform.module, line 258
Platform node type definition.

Code

function hosting_platform_insert($node) {
  if (!isset($node->no_verify)) {
    hosting_add_task($node->nid, 'verify');
  }
  db_query("INSERT INTO {hosting_platform} (vid, nid, publish_path, makefile, verified, web_server, status) VALUES (%d, %d, '%s', '%s', %d, %d, %d)", $node->vid, $node->nid, $node->publish_path, $node->makefile, $node->verified, $node->web_server, $node->platform_status);
  if (!$node->old_vid) {
    hosting_context_register($node->nid, 'platform_' . preg_replace("/[!\\W]/", "", $node->title));
  }
}