Showing posts with label Add status field in custom module. Show all posts
Showing posts with label Add status field in custom module. Show all posts

Saturday 17 August 2013

Magento Add status field in module

open app/code/locel/Package/Module/Block/Adminhtml/Font/Grid.php



$this->addColumn("status", array(
"header" => Mage::helper("Module")->__("status"),
"index" => "status",
"type" => "options",
"options" => Package_Module_Block_Adminhtml_Font_Grid::getValuArray1(),
));


add function getValuArray1 in Grid.php



static public function getValuArray1(){
$data_array1 = Array();
$data_array1[0]='Enabled';
$data_array1[1]='Disabled';
return($data_array1);
}