You are here

function hosting_package_insert in Hosting 7.3

Same name and namespace in other branches
  1. 5 package/hosting_package.module \hosting_package_insert()
  2. 6.2 package/hosting_package.module \hosting_package_insert()
  3. 7.4 package/hosting_package.module \hosting_package_insert()

Implements hook_insert().

1 call to hosting_package_insert()
hosting_package_update in package/hosting_package.module
Implements hook_update().

File

package/hosting_package.module, line 272
Defines package node types

Code

function hosting_package_insert($node) {
  $id = db_insert('hosting_package')
    ->fields(array(
    'vid' => $node->vid,
    'nid' => $node->nid,
    'package_type' => $node->package_type,
    'short_name' => $node->short_name,
    'old_short_name' => $node->old_short_name,
    'description ' => $node->description,
  ))
    ->execute();
}