public function addExportToBulkAction($observer)
    {
        if (! $observer->block instanceof Mage_Adminhtml_Block_Sales_Order_Grid) {
            return;
        }

        $observer->block->getMassactionBlock()->addItem('eparcelexport', array(
            'label' => $observer->block->__('Export to CSV (eParcel)'),
            'url' => $observer->block->getUrl('*/australia_eparcel/export')
        ));
    }
public function addExportToBulkAction($observer)
    {
        if (! $observer->block instanceof Mage_Adminhtml_Block_Sales_Order_Grid) {
            return;
        }

        $observer->block->getMassactionBlock()->addItem('eparcelexport', array(
            'label' => $observer->block->__('Export to CSV (eParcel)'),
            'url' => $observer->block->getUrl('*/australia_eparcel/export')
        ));
    }
public function addExportToBulkAction ( $ observer ) { if ( ! $ observer -> block instanceof Mage_Adminhtml_Block_Sales_Order_Grid ) { return ; } $ observer -> block -> getMassactionBlock ( ) -> addItem ( 'eparcelexport' , array ( 'label' => $ observer -> block -> __ ( 'Export to CSV (eParcel)' ) , 'url' => $ observer -> block -> getUrl ( '*/australia_eparcel/export' ) ) ) ; }
Event Observer. Triggered before an adminhtml widget template is rendered.
We use this to add our action to bulk actions in the sales order grid instead of overridding the class.
Event Observer . Triggered before an adminhtml widget template is rendered . We use this to add our action to bulk actions in the sales order grid instead of overridding the class .