? uploadpath-minor-code-cleanup-152091-1.patch
Index: README.txt
===================================================================
RCS file: /cvs/drupal/contributions/modules/uploadpath/README.txt,v
retrieving revision 1.1
diff -u -p -r1.1 README.txt
--- README.txt	30 Mar 2007 22:01:35 -0000	1.1
+++ README.txt	15 Jun 2007 16:45:00 -0000
@@ -4,7 +4,6 @@ This module allows an admin to configure
 directory to be used by the upload module.  It requires the token module
 to specify the subdirectory pattern.
 
-
 REQUIREMENTS
 
 - Drupal 5.x
@@ -14,12 +13,13 @@ INSTALLATION
 - Copy the uploadpath directory to your modules directory.
 - Go to admin/build/modules and enable it.
 
-
 AUTHOR AND CREDIT
 
 Larry Garfield
 garfield@palantir.net
 http://www.palantir.net/
 
-This module was initially developed by Palantir.net for artsci.washu.edu, and released to the Drupal
-community under the GNU General Public License v2.
\ No newline at end of file
+This module was initially developed by Palantir.net for artsci.washu.edu, and
+released to the Drupal community under the GNU General Public License v2.
+
+$Id$
Index: uploadpath.info
===================================================================
RCS file: /cvs/drupal/contributions/modules/uploadpath/uploadpath.info,v
retrieving revision 1.1
diff -u -p -r1.1 uploadpath.info
--- uploadpath.info	30 Mar 2007 22:01:35 -0000	1.1
+++ uploadpath.info	15 Jun 2007 16:45:00 -0000
@@ -1,4 +1,4 @@
+; $Id$
 name = Upload path
 description = Organize uploaded files according to admin-specified rules.
 dependencies = upload token
-version = "$Name:  $"
\ No newline at end of file
Index: uploadpath.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/uploadpath/uploadpath.install,v
retrieving revision 1.1
diff -u -p -r1.1 uploadpath.install
--- uploadpath.install	30 Mar 2007 22:01:35 -0000	1.1
+++ uploadpath.install	15 Jun 2007 16:45:00 -0000
@@ -1,8 +1,13 @@
 <?php
+// $Id$
+
+/**
+ * @file
+ * Install file for Upload Path module.
+ */
 
 /**
  * Implementation of hook_uninstall().
- *
  */
 function uploadpath_uninstall() {
   variable_del('uploadpath_prefix');
Index: uploadpath.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/uploadpath/uploadpath.module,v
retrieving revision 1.1
diff -u -p -r1.1 uploadpath.module
--- uploadpath.module	30 Mar 2007 22:01:35 -0000	1.1
+++ uploadpath.module	15 Jun 2007 16:45:00 -0000
@@ -1,16 +1,20 @@
 <?php
+// $Id$
 
 /**
- * Implementation of hook_menu()
- *
+ * @file
+ * Upload Path module; allows admins to specify directory for uploaded files.
+ */
+
+/**
+ * Implementation of hook_menu().
  */
 function uploadpath_menu($may_cache) {
-  
   $items = array();
-  
+
   if ($may_cache) {
     $items[] = array(
-      'path' => 'admin/settings/uploadpaths',
+      'path' => 'admin/settings/uploadpath',
       'title' => t('File upload paths'),
       'description' => t('Configure a prefix to apply to the path of uploaded files.'),
       'access' => user_access('administer site configuration'),
@@ -19,43 +23,39 @@ function uploadpath_menu($may_cache) {
       'type' => MENU_NORMAL_ITEM,
     );
   }
-  
+
   return $items;
 }
 
 /**
- * Configuration callback for this module
- *
+ * Configuration callback for this module.
  */
 function uploadpath_admin_settings() {
-  
   $form = array();
-  
+
   $form['uploadpath_prefix'] = array(
-      '#type' => 'textfield',
-      '#title' => t('Pattern for the file prefix'),
-      '#description' => t('Specify the pattern to prefix to file names uploaded with the upload module.  It will be appended after the site files directory (e.g., files) but before the file name itself.  Do not include a leading or trailing slash.  Spaces will be converted to underscores to avoid file system issues.'),
-      '#default_value' => variable_get('uploadpath_prefix', ''),
-    );
+    '#type' => 'textfield',
+    '#title' => t('Pattern for the file prefix'),
+    '#description' => t('Specify the pattern to prefix to file names uploaded with the upload module.  It will be appended after the site files directory (e.g., files) but before the file name itself.  Do not include a leading or trailing slash.  Spaces will be converted to underscores to avoid file system issues.'),
+    '#default_value' => variable_get('uploadpath_prefix', ''),
+  );
   
   $form['token_help'] = array(
-      '#title' => t('Replacement patterns'),
-      '#type' => 'fieldset',
-      '#collapsible' => TRUE,
-      '#collapsed' => TRUE,
-      '#description' => t('Prefer raw-text replacements for text to avoid problems with HTML entities!'),
-    );
-    $form['token_help']['help'] = array(
-      '#value' => theme('token_help', 'node'),
-    );
-  
-  
+    '#title' => t('Replacement patterns'),
+    '#type' => 'fieldset',
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+    '#description' => t('Prefer raw-text replacements for text to avoid problems with HTML entities!'),
+  );
+  $form['token_help']['help'] = array(
+    '#value' => theme('token_help', 'node'),
+  );
+
   return system_settings_form($form);
 }
 
 /**
- * Implementation of hook_nodeapi()
- *
+ * Implementation of hook_nodeapi().
  */
 function uploadpath_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
   switch ($op) {
@@ -76,4 +76,4 @@ function uploadpath_nodeapi(&$node, $op,
       }
       break;
   }
-}
\ No newline at end of file
+}
