Protected Member Functions | |
_beforeSave () |
Definition at line 35 of file Usecustom.php.
_beforeSave | ( | ) | [protected] |
Processing object before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 37 of file Usecustom.php.
00038 { 00039 00040 $value = $this->getValue(); 00041 if ($value == 1) { 00042 $customUrl = $this->getData('groups/url/fields/custom/value'); 00043 if (empty($customUrl)) { 00044 Mage::throwException(Mage::helper('adminhtml')->__('Please specify admin custom URL')); 00045 } 00046 } 00047 00048 return $this; 00049 }