Currently on uninstall various fields are being deleted, which is less than ideal in my case as while I am removing the module I am keeping the content type, fields and data.
My suggested fix is that instead of just removing the fields, check if the fields have data, if not, go nuts, if so, don't touch.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | do-not-remove-fields-when-uninstalling-2411913-3.patch | 725 bytes | amit.drupal |
| #2 | do-not-remove-fields-when-uninstalling-2411913-2.patch | 725 bytes | avpaderno |
| #1 | dont_del_fields-2411913-1.patch | 712 bytes | deciphered |
Comments
Comment #1
decipheredPatch attached does as per my suggested fix.
Comment #2
avpadernoI re-rolled the patch.
Comment #3
amit.drupal commentedI re-rolled the patch $2
Comment #4
avpadernoThe placeholder is correct as in patch #2: %-placeholders are passed through
check_plain(), but they are rendered in italic, as it is normally done with various nouns. Seeformat_string().Comment #6
drummLooks okay, committed #2. Thanks!
Comment #7
drummComment #8
drumm