clone.install 468 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Install & uninstall functions for Node_Clone module.
  5. */
  6. /**
  7. * Implementation of hook_uninstall.
  8. */
  9. function clone_uninstall() {
  10. variable_del('clone_method');
  11. variable_del('clone_omitted');
  12. variable_del('clone_nodes_without_confirm');
  13. variable_del('clone_use_node_type_name');
  14. variable_del('clone_menu_links');
  15. $types = node_type_get_names();
  16. foreach ($types as $type => $name) {
  17. variable_del('clone_reset_' . $type);
  18. }
  19. }