Timeline for How to manually or programmatically delete a field?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 16, 2015 at 20:58 | comment | added | aaronbauman | You're right - i did not thoroughly read the original question. My bad! Preferred method is to use field_delete_field(), but if it fails then going directly to the database is probably the best / only alternative. | |
Sep 16, 2015 at 15:52 | comment | added | tenken | If the addition of fields failed in the UI. Why would you assume the API will still work to delete malformed data/tables? I agree with your overall reply, I disagree with it for 100% of all cases. | |
Sep 16, 2015 at 15:35 | comment | added | aaronbauman | Please do not do this. See answer below: field_delete_field() which will invoke any relevant hooks and clean up cache as well. In general, if you are writing SQL or operating directly in the database, you're doing something wrong. | |
S Oct 11, 2013 at 18:04 | history | suggested | Janine Aquino | CC BY-SA 3.0 |
Changed field_revision_data to field_revision
|
Oct 11, 2013 at 17:51 | review | Suggested edits | |||
S Oct 11, 2013 at 18:04 | |||||
Mar 1, 2013 at 16:21 | vote | accept | giorgio79 | ||
May 22, 2016 at 20:24 | |||||
Feb 24, 2013 at 14:52 | history | answered | tenken | CC BY-SA 3.0 |