For my custom module when i add select box options as follows its not getting added to the database
'include_in_sitemap' => array(
'type' => 'text',
'label' => 'Include in sitemap',
'input' => 'select',
'required' => true,
'sort_order' => 13,
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
'group' => 'Meta Information',
'source' => 'seo/source_sitemap'
),
But when i do as follows its getting saved but option value is set with attribute id.
'include_in_sitemap' => array(
'type' => 'text',
'label' => 'Include in sitemap',
'input' => 'select',
'required' => true,
'sort_order' => 13,
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
'group' => 'General',
'option' =>array(
'values' =>array(
'Auto detect' => 'Auto detect',
'Always include' => 'Always include',
'Never include' => 'Never include'
)
)
),
Which is the right way to add and whats wrong with my code?I need options as <option value="text">Text</option>
. Is it possible ?