function page_title_uninstall in Page Title 5.2
Same name and namespace in other branches
- 8.2 page_title.install \page_title_uninstall()
- 5 page_title.install \page_title_uninstall()
- 6.2 page_title.install \page_title_uninstall()
- 6 page_title.install \page_title_uninstall()
- 7.2 page_title.install \page_title_uninstall()
- 7 page_title.install \page_title_uninstall()
Implementation of hook_uninstall().
File
- ./
page_title.install, line 45 - The Page Title install file, which controls the installation and uninstallation (and updates) of the Page Title module.
Code
function page_title_uninstall() {
// Drop the page_title table
db_query('DROP TABLE IF EXISTS {page_title}');
// Drop the '_old' table, if it exists.
db_query('DROP TABLE IF EXISTS {page_title_old}');
// Clear variables
variable_del('page_title_default');
variable_del('page_title_individual');
variable_del('page_title_front');
variable_del('page_title_blog');
variable_del('page_title_user');
variable_del('page_title_user_showfield');
variable_del('page_title_pager_pattern');
// Clear the node specific variables
$types = node_get_types('names');
foreach ($types as $type => $name) {
variable_del("page_title_type_{$type}");
variable_del("page_title_type_{$type}_showfield");
}
// Clear the vocab specific variables
$vocabs = taxonomy_get_vocabularies();
foreach ($vocabs as $vid => $vocab) {
variable_del("page_title_vocab_{$vid}");
variable_del("page_title_vocab_{$vid}_showfield");
}
}