function paypal_donate_update in Paypal Donation 6
This hook is triggered when a node of type 'paypal_donate' has been updated. This function will update an existing record in the database.
@since 1.0
Parameters
$node object the node to load from the database.:
Return value
void
File
- ./
paypal_donate.module, line 157
Code
function paypal_donate_update($node) {
if ($node->nid > 0) {
return db_query("UPDATE {paypal_donate} SET paypal_account='%s' WHERE nid='%s'", $node->account, $node->nid);
}
else {
/* This else should never be executed */
paypal_donate_save($node);
}
}