*/ class Mage_Customer_Model_Customer_Attribute_Backend_Store extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract { public function beforeSave($object) { if ($object->getId()) { return $this; } if (!$object->hasStoreId()) { $object->setStoreId(Mage::app()->getStore()->getId()); } if (!$object->hasData('created_in')) { $object->setData('created_in', Mage::app()->getStore($object->getStoreId())->getName()); } return $this; } }