protected function getAttribute($entityType, $attributeCode) { $attribute = $this->_getModel('catalog/resource_eav_attribute', 'Mage_Catalog_Model_Resource_Eav_Attribute')->loadByCode($entityType, $attributeCode); return $attribute; }