function paypal_donate_nodeapi in Paypal Donation 6
This function is called with every node event. In this case we use this function to render the Paypal form on the user side of the website (So on watching the content). It will precent the Paypal button for users to donate money to the website.
@since 1.0
See also
http://api.drupal.org/api/function/hook_nodeapi/6
File
- ./
paypal_donate.module, line 76
Code
function paypal_donate_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if (user_access('access content')) {
if ($op == 'alter') {
if ($node->type == 'paypal_page') {
$node->body = theme('paypal_form', $node);
return NULL;
}
}
}
}