Index: webform.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.install,v retrieving revision 1.40.2.21 diff -u -r1.40.2.21 webform.install --- webform.install 17 Oct 2010 21:12:19 -0000 1.40.2.21 +++ webform.install 18 Oct 2010 08:07:47 -0000 @@ -374,6 +374,8 @@ */ function webform_uninstall() { // Unset webform variables. + variable_del('webform_node_types'); + variable_del('webform_node_types_redirect'); variable_del('webform_use_cookies'); variable_del('webform_enable_fieldset'); variable_del('webform_default_from_address'); @@ -748,6 +750,10 @@ if (!db_affected_rows()) { $ret[] = update_sql("INSERT INTO {node_type} (type, name, module, description, help, has_title, title_label, has_body, body_label, min_word_count, custom, modified, locked, orig_type) VALUES ('webform', 'Webform', 'node', 'Create a new form or questionnaire accessible to users. Submission results and statistics are recorded and accessible to privileged users.', '', 1, 'Title', 1, 'Body', 0, 1, 1, 0, 'webform')"); } + + // This variable for some reason must be set manually. + variable_set('webform_node_types', array('webform')); + return $ret; }