You are here

function pmorganization_insert in Drupal PM (Project Management) 7

Implements hook_insert().

1 call to pmorganization_insert()
pmorganization_update in pmorganization/pmorganization.module
Implements hook_update().

File

pmorganization/pmorganization.module, line 356

Code

function pmorganization_insert($node) {
  db_insert('pmorganization')
    ->fields(array(
    'vid' => $node->vid,
    'nid' => $node->nid,
    'country' => $node->country,
    'www' => $node->www,
    'phone' => $node->phone,
    'email' => $node->email,
    'currency' => $node->currency,
    'provstate' => $node->provstate,
    'zip' => $node->zip,
    'city' => $node->city,
    'address' => $node->address,
    'taxid' => $node->taxid,
    'orglanguage' => $node->orglanguage,
    'iscustomer' => $node->iscustomer,
    'isprovider' => $node->isprovider,
    'isactive' => $node->isactive,
    'pricemode' => $node->pricemode,
  ))
    ->execute();
}