You are here

function pay_node_pay_form_access in Pay 6

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

An access callback for payment forms.

1 string reference to 'pay_node_pay_form_access'
pay_node_menu in modules/pay_node/pay_node.module
Implementation of hook_menu().

File

modules/pay_node/pay_node.module, line 30

Code

function pay_node_pay_form_access($node) {
  if (!($pay_form = pay_node_form_load($node))) {
    return FALSE;
  }
  if (!$pay_form
    ->pay_methods()) {
    return FALSE;
  }
  return TRUE;
}