I have a Drupal 7 custom modul and a sub module. In my custom module there is a function: pay($form_state) this implements some if statement these are indentify some payment options.
I would like to altering this whole function with some new payment options from my submodule.
How can I do that? Becouse I can't solve it with drupal_alter, becouse my altered function not run.
Thanks, Adam