function noderelationships_uninstall in Node Relationships 6
Implementation of hook_uninstall().
File
- ./
noderelationships.install, line 23 - Implementation of installation/uninstallation hooks.
Code
function noderelationships_uninstall() {
// Notify the content module.
// Here we want to delete all automatically created back reference fields.
// However, our module has been disabled, and content_field_instance_delete()
// cannot process disabled fields, so we first need to tell CCK to enable all
// back reference fields temporarily, and then content_module_delete() will
// be able to find and delete them.
drupal_load('module', 'content');
content_notify('enable', 'noderelationships');
content_notify('uninstall', 'noderelationships');
// Uninstall module database schema.
drupal_uninstall_schema('noderelationships');
// Delete module variables.
variable_del('noderelationships_admin_theme_children');
}