| 5 install.php | hook_uninstall() |
| 6 install.php | hook_uninstall() |
| 7 system.api.php | hook_uninstall() |
| 8 system.api.php | hook_uninstall() |
Remove any tables or variables that the module sets.
The uninstall hook will fire when the module gets uninstalled.
Related topics
File
- developer/
hooks/ install.php, line 225 - Documentation for the installation and update system.
Code
<?php
function hook_uninstall() {
db_query('DROP TABLE {profile_fields}');
db_query('DROP TABLE {profile_values}');
variable_del('profile_block_author_fields');
}
?>Login or register to post comments