? path_blackauto.patch
? path_blacklist.patch
Index: path_blacklist.info
===================================================================
RCS file: /cvs/drupal/contributions/modules/path_blacklist/path_blacklist.info,v
retrieving revision 1.2
diff -u -p -r1.2 path_blacklist.info
--- path_blacklist.info	6 Apr 2008 15:32:01 -0000	1.2
+++ path_blacklist.info	1 Oct 2008 20:52:41 -0000
@@ -2,4 +2,10 @@
 name = Path blacklist
 description = Allows admin to blacklist certain paths.
 package = Other
-dependencies = path
+dependencies[] = path
+core = 6.x
+
+; Information added by drupal.org packaging script on 2008-04-26
+project = "path_blacklist"
+datestamp = "1209240610"
+
Index: path_blacklist.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/path_blacklist/Attic/path_blacklist.install,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 path_blacklist.install
--- path_blacklist.install	26 Apr 2008 14:00:19 -0000	1.1.2.1
+++ path_blacklist.install	1 Oct 2008 20:41:45 -0000
@@ -1,5 +1,9 @@
 <?php
 // $Id: path_blacklist.install,v 1.1.2.1 2008/04/26 14:00:19 crookednumber Exp $
+/*
+ * @file
+ * Install file for Path Blacklist module.
+ */
 
 /**
  * Implementation of hook_install().
Index: path_blacklist.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/path_blacklist/path_blacklist.module,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 path_blacklist.module
--- path_blacklist.module	26 Apr 2008 14:17:54 -0000	1.1.2.1
+++ path_blacklist.module	1 Oct 2008 20:52:36 -0000
@@ -1,6 +1,10 @@
 <?php
 
 // $Id: path_blacklist.module,v 1.1.2.1 2008/04/26 14:17:54 crookednumber Exp $
+/**
+ * @file
+ * Path Blacklist module file.
+ */
 
 /**
  * Implementation of hook_perm().
@@ -10,22 +14,21 @@ function path_blacklist_perm() {
 }
 
 /**
- * Implementation of hook_menu
+ * Implementation of hook_menu().
  */
-function path_blacklist_menu($may_cache) {
+function path_blacklist_menu() {
   $items = array();
 
-  if ($may_cache) {
-    $items[] = array(
-      'path' => 'admin/settings/path_blacklist',
-      'title' => t('Path blacklist settings'),
-      'description' => t('Administer the Path blacklist module.'),
-      'callback' => 'path_blacklist_settings',
-      'access' => user_access('administer path_blacklist'),
-      'type' => MENU_NORMAL_ITEM,
-    );    
-   }
-   return $items;
+    $items['admin/settings/path_blacklist'] = array(
+      'title' => 'Path blacklist settings',
+      'description' => 'Administer the Path blacklist module.',
+      'page callback' => 'path_blacklist_settings',
+      'access callback' => 'user_access',
+      'access arguments' => array('administer path_blacklist'),
+      'type' => MENU_NORMAL_ITEM
+    );
+
+  return $items;
 }
 
 /**
@@ -39,7 +42,7 @@ function path_blacklist_settings() {
  * Create the Admin settings form.
  */
 function path_blacklist_settings_form() {
-  
+
   $form['blacklist'] = array(
     '#title' => t('Unavailable paths'),
     '#type' => 'textarea',
@@ -57,8 +60,8 @@ function path_blacklist_settings_form() 
 /**
  * Validate the form.
  */
-function path_blacklist_settings_form_validate($form_id, $formvalues) {
-  $paths = explode("\n", $formvalues['blacklist']);
+function path_blacklist_settings_form_validate($form, &$form_state) {
+  $paths = explode("\n", $form_state['values']['blacklist']);
   foreach ($paths as $path) {
     $path = trim($path);
     if (substr($path, 0, 1) == '/' || substr($path, -1) == '/') {
@@ -70,8 +73,8 @@ function path_blacklist_settings_form_va
 /**
  * Submit the form.
  */
-function path_blacklist_settings_form_submit($form_id, $formvalues) {
-  variable_set('path_blacklist_paths', $formvalues['blacklist']);
+function path_blacklist_settings_form_submit($form, &$form_state) {
+  variable_set('path_blacklist_paths', $form_state['values']['blacklist']);
   drupal_set_message(t('Your path blacklist has been successfully saved.'));
 }
 
@@ -88,7 +91,7 @@ function path_blacklist_nodeapi(&$node, 
         if ($nodepath != '' && $path_blacklist_raw != '') {
           $paths = explode("\n", $path_blacklist_raw);
           foreach ($paths as $path) {
-				  	// turn $path into proper perl-style regex
+            // turn $path into proper perl-style regex
             $path = trim($path);
             $pattern = str_replace('/', '\/', $path) ;
             $pattern = str_replace('*', '[^\/]+', $pattern);
@@ -104,4 +107,4 @@ function path_blacklist_nodeapi(&$node, 
         break;
     }
   }
-}
\ No newline at end of file
+}
