I need to override
Mage->Adminhtml->Model->System->Config->Source->Notification->Frequency.php
I followed the instructions outlined in Inchoo override magento model
I tested the changes i need by editing the original mage file... which worked. I then copied that edited file to my module
Myname->Modulename->Model->System->Config->Source->Notification->Frequency.php
Then placed the original file back in the mage folder.
I then edited the class of frequency.php:
class Myname_Modulename_Model_System_Config_Source_Notification_Frequency { public function toOptionArray() { return array( 0 => Mage::helper('adminhtml')->__('0 Minute'), 1 => Mage::helper('adminhtml')->__('1 Hour'), 2 => Mage::helper('adminhtml')->__('2 Hours'), 6 => Mage::helper('adminhtml')->__('6 Hours'), 12 => Mage::helper('adminhtml')->__('12 Hours'), 24 => Mage::helper('adminhtml')->__('24 Hours') ); } } I then added this to the config.xml file:
<config> <global> <models> <modulename> <rewrite> <item>Openstream_Notifications_Model_System_Config_Source_Notification_Frequency</item> </rewrite> </modulename> </models> </global> </config> But i am unable to see the override changes in the systems area, please help by telling me what i'm doing wrong. its my first time overriding a model.