function sharerich_uninstall in Sharerich 7
Same name and namespace in other branches
- 8 sharerich.install \sharerich_uninstall()
- 7.3 sharerich.install \sharerich_uninstall()
- 7.2 sharerich.install \sharerich_uninstall()
Implements hook_uninstall().
File
- ./
sharerich.install, line 23 - Install hooks for Sharerich project.
Code
function sharerich_uninstall() {
module_load_include('module', 'sharerich');
// Clean entity configurations.
foreach (node_type_get_types() as $node) {
variable_del('sharerich_node_' . $node->type);
}
// Clean service configurations.
foreach (sharerich_get_services() as $service_name) {
variable_del('sharerich_node_' . $service_name);
}
// Clean all the rest.
variable_del('sharerich_services');
variable_del('sharerich_youtube_username');
variable_del('sharerich_github_username');
variable_del('sharerich_facebook_app_id');
variable_del('sharerich_facebook_site_url');
variable_del('sharerich_add_js');
variable_del('sharerich_add_css');
}