| 5 install.php | hook_uninstall() |
| 6 install.php | hook_uninstall() |
| 7 system.api.php | hook_uninstall() |
| 8 system.api.php | hook_uninstall() |
Remove any information that the module sets.
The information that the module should remove includes:
- Variables that the module has set using variable_set().
- Modifications to existing tables.
- Database tables the module created.
The uninstall hook must be implemented in the module's .install file. It will fire when the module gets uninstalled.
Related topics
File
- developer/
hooks/ install.php, line 318 - Documentation for the installation and update system.
Code
<?php
function hook_uninstall() {
drupal_uninstall_schema('upload');
variable_del('upload_file_types');
}
?> Login or register to post comments
Comments
Delete created view during uninstallation of custom module
Hi,
I have created my own custom moduel. I am creating default view during installation of module. The thing is working properly.
But I want to delete my custom created view during un-installation of my custom module. But I am unable to do so.
Can anybody help me.
Abhishek
globalabhishek@gmail.com