Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm creating a tabbed menu and I'm passing the node ID as part of the path for each menu item. It works find for all but the default menu item, in which case the arguments are stripped off the path for some reason. I've run across this before and was able to work around it, but this time, I don't want to work around it. Is there a logical explanation for that or a way to have the argument passed to the callback?
I'm developing a payment gateway with a Spanish bank and they want to recibe the payment request with a POST form. All the payment gateway developed I saw use the GET method for the submit. Are there some way to generate a form submit with a POST method with drupal or with PHP? Do you know some payment gateway submiting payment request with the POST method?
I'm creating a custom node module, and am having trouble deciding which hooks to use for various processing tasks. What I'm intending to do is patch together various form values to create the "title" and "body" for my node. Initially I did this in hook_insert and hook_update, which worked well except for one thing. Since these hooks are only called on "submit", when I "preview" the node, it has no title nor body. So I need to place this code into a function that is called on both preview AND submit. Any ideas?