function page_title_uninstall in Page Title 7
Same name and namespace in other branches
- 8.2 page_title.install \page_title_uninstall()
- 5.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()
Implementation of hook_uninstall().
File
- ./
page_title.install, line 65
Code
function page_title_uninstall() {
drupal_uninstall_schema('page_title');
// 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_type_get_names();
foreach ($types as $type => $name) {
variable_del("page_title_type_{$type}");
variable_del("page_title_type_{$type}_showfield");
}
// Clear the vocab specific variables
if (module_exists('taxonomy')) {
$vocabs = taxonomy_get_vocabularies();
foreach ($vocabs as $vid => $vocab) {
variable_del("page_title_vocab_{$vid}");
variable_del("page_title_vocab_{$vid}_showfield");
}
}
}