Magento : Create a Country Drop Down in Admin

To create a country drop down in admin grid of magento, use the following code:
<?php
$fieldset->addField('country', 'select', array(
    'name'  => 'country',
    'label'     => 'All Countries',
    'values'    => Mage::getModel('adminhtml/system_config_source_country')->toOptionArray(),
));
?>

Leave a Reply