public function addExportToBulkAction($observer)
    {
        $block = $observer->getBlock();
        if (
            $block instanceof Mage_Adminhtml_Block_Sales_Order_Grid &&
            Mage::helper('australia/clickandsend')->isClickAndSendEnabled()
        ) {
            $block->getMassactionBlock()->addItem('clickandsendexport', array(
                'label' => $block->__('Export to CSV (Click & Send)'),
                'url'   => $block->getUrl('*/australia_clickandsend/export')
            ));
        }
    }
public function addExportToBulkAction($observer)
    {
        $block = $observer->getBlock();
        if (
            $block instanceof Mage_Adminhtml_Block_Sales_Order_Grid &&
            Mage::helper('australia/clickandsend')->isClickAndSendEnabled()
        ) {
            $block->getMassactionBlock()->addItem('clickandsendexport', array(
                'label' => $block->__('Export to CSV (Click & Send)'),
                'url'   => $block->getUrl('*/australia_clickandsend/export')
            ));
        }
    }
public function addExportToBulkAction ( $ observer ) { $ block = $ observer -> getBlock ( ) ; if ( $ block instanceof Mage_Adminhtml_Block_Sales_Order_Grid && Mage :: helper ( 'australia/clickandsend' ) -> isClickAndSendEnabled ( ) ) { $ block -> getMassactionBlock ( ) -> addItem ( 'clickandsendexport' , array ( 'label' => $ block -> __ ( 'Export to CSV (Click & Send)' ) , 'url' => $ block -> getUrl ( '*/australia_clickandsend/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 overriding the class.

@param $observer
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 overriding the class .