? da.po
? pathauto.install_minor_cleanup.d6.patch
? pathauto_one_table_smaller.d6.patch
? translations/da.po
? translations/pathauto.pot
Index: pathauto.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.install,v
retrieving revision 1.6
diff -u -p -r1.6 pathauto.install
--- pathauto.install	4 May 2008 23:06:10 -0000	1.6
+++ pathauto.install	5 May 2008 16:19:48 -0000
@@ -2,9 +2,7 @@
 // $Id: pathauto.install,v 1.6 2008/05/04 23:06:10 greggles Exp $
 
 /**
- *
  * @file Provides install, updated, and uninstall functions for pathauto.
- * 
  */
 
 /**
@@ -21,7 +19,8 @@ function pathauto_install() {
     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
+  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
@@ -36,7 +35,7 @@ function pathauto_install() {
   variable_set('pathauto_node_page_pattern', '');
   variable_set('pathauto_node_pattern', 'content/[title-raw]');
   variable_set('pathauto_node_story_pattern', '');
-  variable_set("pathauto_punctuation_quotes", 0);
+  variable_set('pathauto_punctuation_quotes', 0);
   variable_set('pathauto_separator', '-');
   variable_set('pathauto_update_action', '2');
   variable_set('pathauto_user_bulkupdate', FALSE);
@@ -55,26 +54,27 @@ function pathauto_install() {
 
   // Create tables.
   drupal_install_schema('pathauto');
-
 }
  
 /**
  * Implementation of hook_uninstall().
  */
 function pathauto_uninstall() {
-   // Delete the url_alias_extra if people have it 
-   if (db_table_exists('url_alias_extra')) { 
-     db_query("DROP TABLE {url_alias_extra}"); 
-   } 
+  // Remove tables.
+  drupal_uninstall_schema('pathauto');
+
+  // Delete the url_alias_extra if people have it
+  if (db_table_exists('url_alias_extra')) {
+    db_query('DROP TABLE {url_alias_extra}');
+  }
 
-  // Delete all the pathauto variables and then clear the variable cache  
+  // Delete all the pathauto variables and then clear the variable cache
   db_query("DELETE FROM {variable} WHERE name LIKE 'pathauto_%'");
   cache_clear_all('variables', 'cache');
 }
 
 /**
  * Set the weight a little heavier to allow taxonomy to do its work
- *
  */
 function pathauto_update_1() {
   $items = array();
@@ -83,30 +83,24 @@ function pathauto_update_1() {
 }
 
 /**
- *
- * pathauto_update_4 was a backport of a feature which is in core of Drupal6
+ * pathauto_update_4 was a backport of a feature which is in core of Drupal 6
  * hence it is removed from the 6.x branch even though the goal is to support
- * Pathauto5.x-1.x -> 6.x-2.x upgrades
+ * Pathauto 5.x-1.x -> 6.x-2.x upgrades
  */
 
 /**
  * Delete the pathauto_node_supportsfeeds
- *
  */
 function pathauto_update_3() {
   // Do nothing, this update was a mistake
-  $items = array();
-  return $items;
+  return array();
 }
 
 /**
  * New style naming for the punctuation chars
- *
  */
 function pathauto_update_4() {
-  $quotes = variable_get('pathauto_quotes', 0);
-  variable_set("pathauto_punctuation_quotes", $quotes);
+  variable_set('pathauto_punctuation_quotes', variable_get('pathauto_quotes', 0));
   variable_del('pathauto_quotes');
-  $items = array();
-  return $items;
-}
\ No newline at end of file
+  return array();
+}
