There is a hook:

function upc_menu() { $items = array(); $items['cart/payment-sent/upc-connect'] = array( 'title' => 'Статус платежа', 'page callback' => 'upc_checkout_payment', 'page arguments' => array($_POST['Signature']), ); return $items; } 

Question: should you specify only internal functions api drupal as callback functions ( page callback ), or can any, including self-written ones?

Ps The upc_checkout_payment function is defined in the same file as upc_menu .

  • can and samopisnye . - Vfvtnjd

1 answer 1

Any. This is just a function that can be called inside your site. That is, do not forget to specify the included file.