You are here

function pay_node_node_load in Pay 7

Implements hook_node_load().

File

modules/pay_node/pay_node.module, line 72

Code

function pay_node_node_load($nodes, $types) {

  // Add the payment acceptance form to the node.
  foreach ($nodes as $node) {
    if ($pay_form = pay_node_form_load($node)) {
      $node->pay_form = $pay_form;
    }
  }
}