I'm using drupal 6.15 with ubercart 2.x and I'm trying to implement ubercart's hook_checkout_pane() to override their default uc_cart_checkout_pane(). I made a function my_module_checkout_pane() in my_module.module and it does get called but the uc_cart version seems to be generating what's actually rendered.
I understand why both functions get called and I can change the order they're called in by modifying my module's weight in the system table but doing so doesn't seem to affect what ends up on the page. Whether my_module's function is called first or second, the uc_cart version is what's rendered. The only way I can get my function to affect the page is to actually alter uc_cart_checkout_pane() so it doesn't return any output but that's not a "good" solution.
Is there some other place I need to do something to make drupal favor my hook implementation over uc_carts'?
Thanks.
edit: Perhaps I should have mentioned what I'm really trying to do is disable some of the default checkout panes - customer information and order comments. If there's another way to do that, that would also solve the problem.