/** * Add the activation status column to the customer grid block. * * This is used from different events when displaying the block as well as * during exporting the grid to CSV or XML. * * @param Mage_Adminhtml_Block_Widget_Grid $block */ protected function _addActivationStatusColumn(Mage_Adminhtml_Block_Widget_Grid $block) { /** @var $helper Netzarbeiter_CustomerActivation_Helper_Data */ $helper = Mage::helper('customeractivation'); // Add the attribute as a column to the grid $block->addColumnAfter('customer_activated', array('header' => $helper->__('Customer Activated'), 'align' => 'center', 'width' => '80px', 'type' => 'options', 'options' => array('0' => $helper->__('No'), '1' => $helper->__('Yes')), 'default' => '0', 'index' => 'customer_activated', 'renderer' => 'customeractivation/adminhtml_widget_grid_column_renderer_boolean'), 'customer_since'); // Set the new columns order.. otherwise our column would be the last one $block->sortColumnsByOrder(); }