At the top of the view for admin/commerce/orders we have a button to create an order in the admin backend as opposed to through the checkout process. Where is this button generated? My issue is when using the order types module in conjunction, each order type gets its own create X button at the top which can pose a problem. I would like to override this to limit the buttons to a particular set or possibly change the button to a select list.
My hunch is that this is drupal core generated, but where do I find / hook to override it and restore the clean nature of commerce order?
Comments
Comment #1
rszrama commentedIt's just a local action menu item; look in commerce_order_ui_menu(). I don't know how the core item could be getting duplicated, though, so maybe you're using some other module that adds buttons there, too.