You are here

function pay_node_pay_form in Pay 7

Same name and namespace in other branches
  1. 6 modules/pay_node/pay_node.module \pay_node_pay_form()

A callback for node/x/pay which presents a payment form.

1 string reference to 'pay_node_pay_form'
pay_node_menu in modules/pay_node/pay_node.module
Implements hook_menu().

File

modules/pay_node/pay_node.module, line 257

Code

function pay_node_pay_form($form, &$form_state, $node) {

  // Load the pay_form for this node, if it exists, and return a default form.
  if ($pay_form = pay_node_form_load($node)) {
    $form_state['pay_node'] = $node;
    drupal_set_title($pay_form
      ->title());
    return pay_form($form_state, $pay_form);
  }
}