You are here

function pay_node_form_submit in Pay 6

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

A submit callback for the node editing form.

1 string reference to 'pay_node_form_submit'
pay_node_admin_node_form_after_build in modules/pay_node/pay_node.module
An after_build callback for the node editing form.

File

modules/pay_node/pay_node.module, line 267

Code

function pay_node_form_submit(&$form, &$form_state) {

  // Pay's save() function stored the new pay object in $form_state.
  // Copy it to $form_state['values'] where it can be accessed by hook_nodeapi.
  if (isset($form_state['pay'])) {
    $form_state['values']['pay_node'] = $form_state['pay'];
  }
}