protected function _getDefaultSourceModel() { switch ($this->getAttributeCode()) { case 'store_id': return 'eav/entity_attribute_source_store'; } return parent::_getDefaultSourceModel(); }
/** * Retreive default attribute source model * * @return string */ protected function _getDefaultSourceModel() { if ($this->getAttributeCode() == 'store_id') { return 'eav/entity_attribute_source_store'; } return parent::_getDefaultSourceModel(); }
/** * Retrieve default attribute source model * * @return string */ protected function _getDefaultSourceModel() { if ($this->getAttributeCode() == 'store_id') { return 'Mage_Eav_Model_Entity_Attribute_Source_Store'; } return parent::_getDefaultSourceModel(); }