Public Member Functions | |
toOptionArray () |
Definition at line 35 of file Template.php.
toOptionArray | ( | ) |
Definition at line 38 of file Template.php.
00039 { 00040 if(!$collection = Mage::registry('config_system_email_template')) { 00041 $collection = Mage::getResourceModel('core/email_template_collection') 00042 ->load(); 00043 00044 Mage::register('config_system_email_template', $collection); 00045 } 00046 $options = $collection->toOptionArray(); 00047 array_unshift( 00048 $options, 00049 array( 00050 'value'=> str_replace('/', '_', $this->getPath()), 00051 'label' => Mage::helper('adminhtml')->__('Default Template from Locale') 00052 ) 00053 ); 00054 return $options; 00055 }