I have written a custom field module and I would like to know how I can programmatically find out what the name of the field in the database.
E.g. someone installs my module, that installs a new fieldtype and widget. The user adds a new field to a content type and calls the field "test_field". How can the module provide the database name of the field ("test_field") to some function within the module?
Currently I am hard-coding the name of the field which works fine until a user decides to use another name. Then I am not able to do some database operations anymore.