Index: pathauto.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/Attic/pathauto.install,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 pathauto.install
--- pathauto.install	17 Jan 2007 16:53:41 -0000	1.1.2.1
+++ pathauto.install	15 Feb 2007 19:39:56 -0000
@@ -10,10 +10,50 @@
  
  
 /**
+ * Implementation of hook_install().
+ */
+function pathauto_install() {
+  // Check to see if taxonomy module is enabled before we set those variables
+  if (module_exists('taxonomy')) {
+    variable_set('pathauto_modulelist', array('node', 'user', 'taxonomy'));
+    variable_set('pathauto_taxonomy_supportsfeeds', '0/feed');
+    variable_set('pathauto_taxonomy_pattern', '[vocab]/[catpath]');
+    variable_set('pathauto_taxonomy_bulkupdate', FALSE);
+    variable_set('pathauto_taxonomy_applytofeeds', FALSE);
+    variable_set('pathauto_taxonomy_2_pattern', '');
+    variable_set('pathauto_taxonomy_1_pattern', '');
+  }
+  else { // Node and user are required so we don't have to check
+    variable_set('pathauto_modulelist', array('node', 'user'));
+  }
+  // Set the rest of the pathauto default variables
+  variable_set('pathauto_ignore_words', 'a,an,as,at,before,but,by,for,from,is,in,into,like,of,off,on,onto,per,since,than,the,this,that,to,up,via,with');
+  variable_set('pathauto_indexaliases', FALSE);
+  variable_set('pathauto_indexaliases_bulkupdate', FALSE);
+  variable_set('pathauto_max_component_length', '100');
+  variable_set('pathauto_max_length', '100');
+  variable_set('pathauto_node_applytofeeds', FALSE);
+  variable_set('pathauto_node_bulkupdate', FALSE);
+  variable_set('pathauto_node_forum_pattern', '');
+  variable_set('pathauto_node_image_pattern', '');
+  variable_set('pathauto_node_page_pattern', '');
+  variable_set('pathauto_node_pattern', '[title]');
+  variable_set('pathauto_node_story_pattern', '');
+  variable_set('pathauto_node_supportsfeeds', 'feed');
+  variable_set('pathauto_quotes', '0');
+  variable_set('pathauto_separator', '-');
+  variable_set('pathauto_update_action', '2');
+  variable_set('pathauto_user_bulkupdate', FALSE);
+  variable_set('pathauto_user_pattern', 'user/[user]');
+  variable_set('pathauto_user_supportsfeeds', NULL);
+  variable_set('pathauto_verbose', FALSE);
+}
+ 
+/**
  * Implementation of hook_uninstall().
  */
 function pathauto_uninstall() {
   // Delete all the pathauto variables and then clear the variable cache  
-  db_query("delete from variable where name like 'pathauto_%'");
+  db_query("DELETE FROM {variable} WHERE name LIKE 'pathauto_%'");
   cache_clear_all('variables', 'cache');
 }
\ No newline at end of file
