Problem deleting custom types in tutorial

1 reply [Last post]
jadoti
Offline
Last seen: 10 years 9 weeks ago
Joined: 2012-04-03

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?

jadoti
Offline
Last seen: 10 years 9 weeks ago
Joined: 2012-04-03
Update

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

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:


Loading...
Contact us

Below are the supported keyboard shortcuts for our video player.

space
Start / stop video
shift
Go to next video
shift
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
1...9
Jump to a percentage (2 is 20%, for example)
f
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
$29
1 month
$156
6 months
10% off
$276
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
user
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.