Problem deleting custom types in tutorial
I'm in the D7 Core Concepts set, Number 12. How to work with nodes. Video 11 and 12 (add a new content type and remove a custom content type). I made a mistake initially by setting up the newstuff.install text into the stuff.install file (during the creating the new content type video). When I went to fix it, by moving the methods over to newstuff.install, and eventually just copying and pasting your sample code into mine) I still cannot get the custom types to go away. It doesn't look like the hook_uninstall() is running.
So, my main question is really what gets installed into the database at this point so that I can manually go and remove the entries for the custom type?
I see entries in field_config (the two newstuff field types), I'm not seeing anything in the node table, and I see the newstuff node type in the node_type table. Are these the only three areas that this part of the tutorial modified in my database?
Essentially, how do I manually back this all out from the database so I can try again?
I went back to the trails module that we created, and we did two variables that got stored in there. In the trails.install file, we created a function trails_uninstall() to implement hook_uninstall there as well.
In the trails_uninstall() function, we had:
variable_del('trails_block_max');
variable_del('trails_history');
After uninstalling the trails module, if I go back and look in the variable table, I still see those in there, complete with values in the value blob.
To me it doesn't seem like any of the hook_uninstall functions are getting called at all. Am I missing something? Do these methods have to be registered somehow? I do my best to copy your code, but prefer to follow along with the videos and type it in myself so I get a full grasp of what is going on in each part, so I'd understand if I missed something, but I don't think I did.
Any help would be appreciated.
Mike