You are here

function hosting_platform_insert in Hosting 5

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \hosting_platform_insert()
  2. 7.4 platform/hosting_platform.module \hosting_platform_insert()
  3. 7.3 platform/hosting_platform.module \hosting_platform_insert()

Implementation of hook_insert().

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

File

platform/hosting_platform.module, line 137
Platform node type definition

Code

function hosting_platform_insert($node) {
  if ($node->default_platform == 1) {
    variable_set('hosting_default_platform', $node->nid);
  }
  hosting_add_task($node->nid, 'verify');
  db_query("INSERT INTO {hosting_platform} (vid, nid, publish_path, verified, web_server) VALUES (%d, %d, '%s', %d, %d)", $node->vid, $node->nid, $node->publish_path, $node->verified, $node->web_server);
}