$setup = new Mage_Eav_Model_Entity_Setup(‘core_setup’);
$setup->removeAttribute(‘catalog_category’,’category_color’);
$setup->addAttribute(‘catalog_category’, ‘category_color’, array(
‘group’ => ‘General Information’,
‘input’ => ‘select’,
‘type’ => ‘varchar’,
‘label’ => ‘Select Product Layout’,
‘option’ => array (
‘value’ => array(‘optionone’=>array(0=>’2 Products’),’optiontwo’=>array(0=>’3 Products’))
),
‘backend’ => ‘eav/entity_attribute_backend_array’,
‘visible’ => 1,
‘required’ => 0,
‘user_defined’ => 1,
‘default’ =>3,
‘global’ => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));
$installer->endSetup();
?>