function deleteStoredObjectAttribute($contentObjectAttribute, $version = null) { if ($version === null) { eZImageAliasHandler::removeAllAliases($contentObjectAttribute); } else { $imageHandler = $contentObjectAttribute->attribute('content'); if ($imageHandler) { $imageHandler->removeAliases($contentObjectAttribute); } } }