load('paypal/fetch_reports/time', 'path')->getValue()); if (Mage::getModel('core/config_data')->load('paypal/fetch_reports/active', 'path')->getValue()) { $interval = Mage::getModel('core/config_data')->load(self::CRON_MODEL_PATH_INTERVAL, 'path')->getValue(); $cronExprString = "{$time[1]} {$time[0]} */{$interval} * *"; } Mage::getModel('core/config_data') ->load(self::CRON_STRING_PATH, 'path') ->setValue($cronExprString) ->setPath(self::CRON_STRING_PATH) ->save(); return parent::_afterSave(); } }