You are here

function paypal_donate_insert in Paypal Donation 6

This hook is triggered when a node of type 'paypal_donate' has been saved. This function will insert a new record into the database.

@since 1.0

Parameters

$node object the node to load from the database.:

Return value

void

File

./paypal_donate.module, line 145

Code

function paypal_donate_insert($node) {
  return db_query("INSERT INTO {paypal_donate} SET nid='%s', paypal_account='%s'", $node->nid, $node->account);
}