Index: padfile.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/Attic/padfile.install,v
retrieving revision 1.1.2.10
diff -u -r1.1.2.10 padfile.install
--- padfile.install	13 Mar 2010 09:02:13 -0000	1.1.2.10
+++ padfile.install	26 Apr 2010 16:04:01 -0000
@@ -355,40 +355,22 @@
   return $schema;
 }
 
-function _padfile_fckeditor_ignore() {
-  if (module_exists('fckeditor')) {
-    $fckeditor = db_query("SELECT settings FROM {fckeditor_settings} WHERE name = '%s'",
-      "FCKeditor Global Profile");
-    $data = db_fetch_object($fckeditor);
-    if ($data) {
-      // FCKeditor is installed and has a global profile
-      //
-      // Verify that the include/exclude setup is as expected
-      $arr = unserialize($data->settings);
-      if ($arr['excl_mode'] == 0) {
-        // Verify that the path isn't already included
-        if (preg_match('|admin/content/padfile/*|', $arr['excl']) == 0) {
-          if (drupal_substr($arr['excl'], -1) != "\n" && drupal_substr($arr['excl'], -1) != "\r") {
-            $arr['excl'] .= "\r\n";
-          }
-          $arr['excl'] .= "admin/content/padfile/*\r\n";
-          db_query("UPDATE {fckeditor_settings} SET settings = '%s' WHERE name = '%s'",
-            serialize($arr), "FCKeditor Global Profile");
-          // Now make sure that the regular expressions are updated
-          module_load_include('admin.inc', 'fckeditor');
-          fckeditor_rebuild_selectors('FCKeditor Global Profile');
-        }
-      }
-    }
-  }
-}
-
 /**
  * Implementation of hook_install().
  */
 function padfile_install() {
-  _padfile_fckeditor_ignore();
-  drupal_install_schema('padfile');
+  // Load the Schema API and its engines.
+  drupal_load('module', 'schema');
+  require_once(drupal_get_path('module', 'schema') . '/engines/schema_mysql.inc');
+  require_once(drupal_get_path('module', 'schema') . '/engines/schema_mysqli.inc');
+  require_once(drupal_get_path('module', 'schema') . '/engines/schema_pgsql.inc');
+
+  // Install the tables.
+  foreach (padfile_schema() as $tablename => $table) {
+    $table['name'] = $tablename;
+    $sql = schema_invoke('create_table_sql', $table);
+    db_query($sql);
+  }
   drupal_set_message('PAD File was installed.');
 }
 
@@ -396,28 +378,10 @@
  * Implementation of hook_uninstall().
  */
 function padfile_uninstall() {
-  drupal_uninstall_schema('padfile');
-  variable_del('padfile_minimum_byte_size');
+  foreach (padfile_schema() as $name => $table) {
+    if (db_table_exists($name)) {
+      db_query('DROP TABLE {' . $name . '}');
+    }
+  }
   drupal_set_message('PAD File was uninstalled.');
 }
-
-/**
- * Implementation of hook_update_#()
- */
-function padfile_update_6000() {
-  $ret = array();
-
-  db_add_field(
-    $ret,
-    'padfile',
-    'link_nodes',
-    array(
-      'type' => 'text',
-      'description' => 'List of nodes where a link to this padfile is shown',
-    )
-  );
-
-  return $ret;
-}
-
-// vim: ts=2 sw=2 et syntax=php
Index: padfile.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/Attic/padfile.pages.inc,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 padfile.pages.inc
--- padfile.pages.inc	13 Mar 2010 08:58:25 -0000	1.1.2.11
+++ padfile.pages.inc	26 Apr 2010 16:04:03 -0000
@@ -6,17 +6,6 @@
  * Implementation of the PAD File output.
  */
 
-
-function _padfile_get_padfiles() {
-  // we want a list of all the active PAD Files
-  $padfiles = array();
-  $result = db_query("SELECT * FROM {padfile} WHERE active = 1 ORDER BY program_name");
-  while ($row = db_fetch_object($result)) {
-    $padfiles[] = $row;
-  }
-  return $padfiles;
-}
-
 function padfile_output($language, $filename, $export = FALSE) {
   global $base_url;
   static $mod_version;
Index: padfile.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/Attic/padfile.admin.inc,v
retrieving revision 1.1.2.15
diff -u -r1.1.2.15 padfile.admin.inc
--- padfile.admin.inc	5 Apr 2010 00:39:00 -0000	1.1.2.15
+++ padfile.admin.inc	26 Apr 2010 16:04:00 -0000
@@ -7,21 +7,6 @@
  */
 
 /**
- * Retrieve the list of padfiles defined at this site.
- *
- * \return An array composed of the raw rows from the database.
- */
-function _padfile_get_padfiles() {
-  // query with a default order
-  $padfiles = array();
-  $result = db_query("SELECT * FROM {padfile} ORDER BY program_name");
-  while ($row = db_fetch_object($result)) {
-    $padfiles[] = $row;
-  }
-  return $padfiles;
-}
-
-/**
  * Retrieve the list of descriptions for the specified PAD File.
  *
  * \return An array composed of the raw rows from the database.
@@ -448,7 +433,7 @@
 /**
  * Menu callback (add a PAD file to the site)
  */
-function padfile_form_padfile(&$form_state, $edit = array()) {
+function padfile_form_padfile($form_state = NULL, $edit = array()) {
   global $user;
 
   // make sure we have proper defaults
@@ -1067,7 +1052,7 @@
 /**
  * Menu callback (Confirm before delete)
  */
-function padfile_confirm_delete(&$form_state, $padfile) {
+function padfile_confirm_delete($padfile) {
   $form['type'] = array(
     '#type' => 'value',
     '#value' => 'padfile',
@@ -1104,23 +1089,34 @@
   if ((isset($_POST['op']) && $_POST['op'] == t('Delete')) || isset($_POST['confirm'])) {
     return drupal_get_form('padfile_confirm_delete', $padfile);
   }
-  return drupal_get_form('padfile_form_padfile', (array)$padfile);
+  return drupal_get_form('padfile_form_padfile', array(), (array)$padfile);
 }
 
 /**
  * Used confirmed he wanted to delete the PAD File
  */
-function padfile_confirm_delete_submit($form, &$form_state) {
+function padfile_confirm_delete_submit($form, &$form_state5) {
+  // Drupal 5 degradation
+  $form_state['values'] = $form_state5;
+
   padfile_delete($form_state['values']['padid']);
   drupal_set_message(t('Deleted PAD File !name.', array('!name' => $form_state['values']['name'])));
   watchdog('padfile', 'Deleted PAD File !name.', array('!name' => $form_state['values']['name']), WATCHDOG_NOTICE);
   $form_state['redirect'] = 'admin/content/padfile';
+
+  // Drupal 5 degradation
+  return $form_state['redirect'];
 }
 
 /**
  * hook_validate()
  */
-function padfile_form_padfile_validate($form, &$form_state) {
+function padfile_form_padfile_validate($form, &$form_state5) {
+  // Drupal 5 degradation
+  $form_state = array(
+    'values' => $form_state5,
+  );
+
   // CHECK URLs
   // Note that the URLs marked as required will be checked by the system
   // BEFORE we have a chance to clean the form state. So we have to check
@@ -1261,7 +1257,12 @@
 /**
  * hook_submit()
  */
-function padfile_form_padfile_submit($form, &$form_state) {
+function padfile_form_padfile_submit($form, &$form_state5) {
+  // Drupal 5 degradation
+  $form_state = array(
+    'values' => $form_state5,
+  );
+
   global $user;
 
   if (!isset($form_state['module'])) {
@@ -1312,18 +1313,46 @@
     unset($form_state['values']['download_counter']);
   }
 
-  drupal_write_record('padfile', $form_state['values'], $save_edit);
+  // Drupal 5 degradation: Wow, this is ugly.
+  //drupal_write_record('padfile', $form_state['values'], $save_edit);
+  if (isset($form_state['values']['padid'])) {
+    db_query("DELETE FROM {padfile} WHERE padid = %d", $form_state['values']['padid']);
+  }
+  $sql = 'INSERT INTO {padfile} ';
+  $columns = array();
+  $types = array();
+  $values = array();
+  require_once('padfile.install');
+  $schema = padfile_schema();
+  foreach ($schema['padfile']['fields'] as $fieldname => $field) {
+    if (isset($form_state['values'][$fieldname]) && !empty($form_state['values'][$fieldname])) {
+      $columns[] = $fieldname;
+      switch ($field['type']) {
+        case 'text':
+        case 'varchar':
+        case 'char':
+          $types[] = "'%s'";
+          break;
+        case 'int':
+        case 'serial':
+        case 'float':
+          $types[] = '%d';
+          break;
+      }
+      $values[] = $form_state['values'][$fieldname];
+    }
+  }
+  $sql .= '(' . implode(', ', $columns) . ') VALUES(' . implode(', ', $types) . ')';
+  array_unshift($values, $sql);
+  call_user_func_array('db_query', $values);
 
-  // Switch to the editor so people can now edit the descriptions
-  // (instead of going back to the list of PAD Files)
-  $form_state['padid'] = $form_state['values']['padid'];
-  $form_state['redirect'] = 'admin/content/padfile/edit/' . $form_state['padid'];
+  return 'admin/content/padfile';
 }
 
 /**
  * Menu callback (Offer a way to the user to import his PAD Files)
  */
-function padfile_form_import(&$form_state) {
+function padfile_form_import($form_state = array()) {
   // make sure we are sent the proper type of data
   $form['#attributes'] = array(
     'enctype' => "multipart/form-data"
@@ -1530,7 +1559,7 @@
 /**
  * Menu callback (List all the descriptions available for a PAD File)
  */
-function padfile_content_description_list(&$form_state, $padfile) {
+function padfile_content_description_list($padfile) {
   $form['#tree'] = TRUE;
 
   $descriptions = _padfile_get_descriptions($padfile->padid);
@@ -1622,7 +1651,7 @@
 /**
  * Menu callback (Add/edit a description for a PAD File)
  */
-function padfile_form_description(&$form_state, $padid, $language = NULL) {
+function padfile_form_description($padid, $language = NULL) {
   // TODO: should we check that $padid is valid?
   if ($language) {
     $editing = TRUE;
@@ -1766,7 +1795,10 @@
  * Validation function to make sure that the descriptions don't include invalid
  * characters.
  */
-function padfile_form_description_validate($form, &$form_state) {
+function padfile_form_description_validate($form, &$form_state5) {
+  // Drupal 5 degradation
+  $form_state['values'] = $form_state5;
+
   if (preg_match("/[\n<>]/", $form_state['values']['desc45'])) {
     form_set_error('desc45', t('The 45 characters description cannot include new-line, &lt; or &gt; characters.'));
   }
@@ -1784,7 +1816,10 @@
 /**
  * Submit function used to save the descriptions.
  */
-function padfile_form_description_submit($form, &$form_state) {
+function padfile_form_description_submit($form, &$form_state5) {
+  // Drupal 5 degradation
+  $form_state['values'] = $form_state5;
+
   if (!isset($form_state['module'])) {
     $form_state['module'] = 'padfile';
   }
@@ -1792,11 +1827,15 @@
     $save_edit = array('padid', 'language');
   }
 
-  drupal_write_record('padfile_descriptions', $form_state['values'], $save_edit);
+  // @TODO: Save the record to the database.
+  //drupal_write_record('padfile_descriptions', $form_state['values'], $save_edit);
 
   // Go to the list of descriptions
   $form_state['padid'] = $form_state['values']['padid'];
   $form_state['redirect'] = 'admin/content/padfile/edit/' . $form_state['padid'] . '/desc_list';
+
+  // Drupal 5 degradation
+  return $form_state['redirect'];
 }
 
 /**
@@ -1853,7 +1892,7 @@
 /**
  * Menu callback
  */
-function padfile_form_settings(&$form_state) {
+function padfile_form_settings($form_state = array()) {
   $form['padfiles'] = array(
     '#type' => 'fieldset',
     '#title' => t('PAD Files'),
@@ -1874,7 +1913,7 @@
 /**
  * Menu callback
  */
-function padfile_form_tools(&$form_state) {
+function padfile_form_tools($form_state = array()) {
   $form['cache'] = array(
     '#type' => 'fieldset',
     '#title' => t('Cache'),
@@ -1940,7 +1979,13 @@
 /**
  * Submit one of the Tools button.
  */
-function padfile_form_tools_submit($form, &$form_state) {
+function padfile_form_tools_submit($form, &$form_state5) {  
+  // Drupal 5 degradation
+  $form_state = array(
+    'values' => $form_state5,
+    'submitted' => TRUE,
+  );
+
   if (!$form_state['submitted']) {
     return;
   }
Index: padfile.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/Attic/padfile.info,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 padfile.info
--- padfile.info	13 Mar 2010 08:58:25 -0000	1.1.2.5
+++ padfile.info	26 Apr 2010 16:04:00 -0000
@@ -2,14 +2,5 @@
 name = "PAD File"
 package = "PAD File"
 description = "Portable Application Description support"
-core = 6.x
-
-
-
-
-; Information added by drupal.org packaging script on 2010-03-01
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "padfile"
-datestamp = "1267402298"
-
+core = 5.x
+dependencies = schema
Index: padfile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/Attic/padfile.module,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 padfile.module
--- padfile.module	15 Apr 2010 03:25:41 -0000	1.1.2.11
+++ padfile.module	26 Apr 2010 16:04:01 -0000
@@ -27,28 +27,38 @@
 /**
  * Implementation of hook_menu().
  */
-function padfile_menu() {
-  $items = array();
+function padfile_menu($may_cache) {
+  // Drupal 5 degradation: We ignore menu caching.
+  if ($may_cache) {
+    return array();
+  }
+  // Include the PAD File menu callback files.
+  require_once('padfile.admin.inc');
+  require_once('padfile.pages.inc');
+
   $items['admin/content/padfile'] = array(
+    'path' => 'admin/content/padfile',
     'title' => 'PAD Files',
     'description' => 'Configure your XML PAD files.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_content_list'),
-    'access arguments' => array('administer padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_content_list'),
+    'access' => user_access('administer padfile'),
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/list'] = array(
+    'path' => 'admin/content/padfile/list',
     'title' => 'List',
     'description' => 'Select the PAD File to edit.',
     'weight' => 0,
     'type' => MENU_DEFAULT_LOCAL_TASK,
   );
   $items['admin/content/padfile/add'] = array(
+    'path' => 'admin/content/padfile/add',
     'title' => 'Add',
     'description' => 'Create a new PAD File for this website.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_form_padfile'),
-    'access arguments' => array('create padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_form_padfile'),
+    'access' => user_access('create padfile'),
     'weight' => 1,
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
@@ -56,109 +66,102 @@
   $items['admin/content/padfile/import'] = array(
     'title' => 'Import',
     'description' => 'Import an existing XML PAD File.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_form_import'),
-    'access arguments' => array('create padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_form_import'),
+    'access' => user_access('create padfile'),
     'weight' => 2,
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/edit/%padfile_padfile'] = array(
+    'path' => 'admin/content/padfile/edit/' . arg(4),
     'title' => 'Edit',
-    'page callback' => 'padfile_content_edit',
-    'page arguments' => array(4),
-    'access arguments' => array('edit own padfile'),
+    'callback' => '_padfile_d5_content_edit',
+    'callback arguments' => array(arg(4)),
+    'access' => user_access('edit own padfile'),
     'type' => MENU_CALLBACK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/edit/%padfile_padfile/edit'] = array(
+    'path' => 'admin/content/padfile/edit/' . arg(4) . '/edit',
     'title' => 'Edit',
+    'callback' => '_padfile_d5_content_edit',
+    'callback arguments' => array(arg(4)),
     'description' => 'Edit the main fields defining your PAD File.',
     'weight' => 0,
     'type' => MENU_DEFAULT_LOCAL_TASK,
   );
   $items['admin/content/padfile/edit/%padfile_padfile/desc_list'] = array(
+    'path' => 'admin/content/padfile/edit/' . arg(4) . '/desc_list',
     'title' => 'List descriptions',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_content_description_list', 4),
-    'access arguments' => array('edit own padfile'),
+    'callback' => '_padfile_d5_desc_list',
+    'callback arguments' => array(arg(4)),
+    'access' => user_access('edit own padfile'),
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/edit/%/desc_add'] = array(
+    'path' => 'admin/content/padfile/edit/' . arg(4) . '/desc_add',
     'title' => 'Add description',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_form_description', 4),
-    'access arguments' => array('create padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_form_description', arg(4)),
+    'access' => user_access('create padfile'),
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
     'weight' => 10,
   );
   $items['admin/content/padfile/edit/%/desc_edit/%'] = array(
     'title' => 'Edit description',
-    'page callback' => 'padfile_content_description_edit',
-    'page arguments' => array(4, 6),
-    'access arguments' => array('edit own padfile'),
+    'callback' => 'padfile_content_description_edit',
+    'callback arguments' => array(4, 6),
+    'access' => user_access('edit own padfile'),
     'type' => MENU_CALLBACK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/edit/%/desc_delete/%'] = array(
     'title' => 'Delete description',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_confirm_description_delete', 4, 6),
-    'access arguments' => array('delete own padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_confirm_description_delete', 4, 6),
+    'access' => user_access('delete own padfile'),
     'type' => MENU_CALLBACK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/delete/%padfile_padfile'] = array(
+    'path' => 'admin/content/padfile/delete/' . arg(4),
     'title' => 'Delete a PAD File',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_confirm_delete', 4),
-    'access arguments' => array('delete own padfile'),
+    'callback' => '_padfile_d5_content_delete',
+    'callback arguments' => array(arg(4)),
+    'access' => user_access('delete own padfile'),
     'type' => MENU_CALLBACK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/settings'] = array(
+    'path' => 'admin/content/padfile/settings',
     'title' => 'Settings',
     'description' => 'Global settings for the PAD File system.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_form_settings'),
-    'access arguments' => array('administer padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_form_settings'),
+    'access' => user_access('administer padfile'),
     'weight' => 10,
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
   );
   $items['admin/content/padfile/tools'] = array(
+    'path' => 'admin/content/padfile/tools',
     'title' => 'Tools',
     'description' => 'Functions to apply to all your PAD Files and Cache functions.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('padfile_form_tools'),
-    'access arguments' => array('administer padfile'),
+    'callback' => 'drupal_get_form',
+    'callback arguments' => array('padfile_form_tools'),
+    'access' => user_access('administer padfile'),
     'weight' => 20,
     'type' => MENU_LOCAL_TASK,
     'file' => 'padfile.admin.inc',
   );
   $items['padfile/%'] = array( // filename only
+    'path' => 'padfile',
     'title' => 'PAD File retrieval',
-    'page callback' => 'padfile_output',
-    'page arguments' => array('all', 1, FALSE),
-    'access arguments' => array('access padfile'),
-    'type' => MENU_CALLBACK,
-    'file' => 'padfile.pages.inc',
-  );
-  $items['padfile/%/%'] = array( // language + filename, ignore all other descriptions
-    'title' => 'PAD File retrieval, language specific',
-    'page callback' => 'padfile_output',
-    'page arguments' => array(1, 2, FALSE),
-    'access arguments' => array('access padfile'),
-    'type' => MENU_CALLBACK,
-    'file' => 'padfile.pages.inc',
-  );
-  $items['padfile/%/%/%'] = array( // export + language + filename, ignore all other descriptions
-    'title' => 'Exporting PAD File retrieval (type changed)',
-    'page callback' => 'padfile_output',
-    'page arguments' => array(2, 3, TRUE),
-    'access arguments' => array('access padfile'),
+    'callback' => '_padfile_d5_output',
+    'access' => user_access('access padfile'),
     'type' => MENU_CALLBACK,
     'file' => 'padfile.pages.inc',
   );
@@ -167,7 +170,7 @@
 
 /**
  * Implementation of hook_link()
- */
+ *
 function padfile_link($type, $node = NULL, $teaser = FALSE) {
   if ($teaser) {
     return;
@@ -194,20 +197,6 @@
 }
 
 /**
- * Implementation of hook_theme()
- */
-function padfile_theme() {
-  return array(
-    'padfile_content_list' => array(
-      'arguments' => array('form' => array()),
-    ),
-    'padfile_content_description_list' => array(
-      'arguments' => array('form' => array()),
-    ),
-  );
-}
-
-/**
  * Implementation of hook_load()
  *
  * Retrieve a PAD File
@@ -261,3 +250,54 @@
   db_query("DELETE FROM {padfile_descriptions} WHERE padid = %d AND language = '%s'", $padid, $language);
 }
 
+/**
+ * Retrieve the list of padfiles defined at this site.
+ *
+ * \return An array composed of the raw rows from the database.
+ */
+function _padfile_get_padfiles() {
+  // query with a default order
+  $padfiles = array();
+  $result = db_query("SELECT * FROM {padfile} ORDER BY program_name");
+  while ($row = db_fetch_object($result)) {
+    $padfiles[] = $row;
+  }
+  return $padfiles;
+}
+
+/**
+ * Drupal 5 degradation for the padfile_content_edit function.
+ */
+function _padfile_d5_content_edit($padfile_padfile) {
+  $padfile = padfile_padfile_load($padfile_padfile);
+  return padfile_content_edit($padfile);
+}
+
+/**
+ * Drupal 5 degradation for the delete menu callback.
+ */
+function _padfile_d5_content_delete($padfile_padfile) {
+  $padfile = padfile_padfile_load($padfile_padfile);
+  return drupal_get_form('padfile_confirm_delete', $padfile);
+}
+
+/**
+ * Drupal 5 degradation for the padfile menu callback.
+ */
+function _padfile_d5_output($arg, $arg2 = '', $arg3 = '') {
+  if (empty($arg2) && empty($arg3)) {
+    return padfile_output('all', arg(1), FALSE);
+  }
+  if (empty($arg3)) {
+    return padfile_output(arg(1), arg(2), FALSE);
+  }
+  return padfile_output(arg(2), arg(3), TRUE);
+}
+
+/**
+ * Drupal 5 degradation for the desc_list menu callback.
+ */
+function _padfile_d5_desc_list($padfile_padfile) {
+  $padfile = padfile_padfile_load($padfile_padfile);
+  return drupal_get_form('padfile_content_description_list', $padfile);
+}
Index: padfile_filter/padfile_filter.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/padfile_filter/Attic/padfile_filter.info,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 padfile_filter.info
--- padfile_filter/padfile_filter.info	13 Mar 2010 08:58:25 -0000	1.1.2.2
+++ padfile_filter/padfile_filter.info	26 Apr 2010 16:04:03 -0000
@@ -2,15 +2,5 @@
 name = "PAD File Filter"
 package = "PAD File"
 description = "Filter to display a link or add content to a node from the definition of a Portable Application Description support"
-dependencies[] = padfile
+dependencies = drupal6 padfile
 core = 6.x
-
-
-
-
-; Information added by drupal.org packaging script on 2010-03-01
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "padfile"
-datestamp = "1267402298"
-
Index: padfile_page/padfile_page.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/padfile_page/Attic/padfile_page.info,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 padfile_page.info
--- padfile_page/padfile_page.info	13 Mar 2010 08:58:25 -0000	1.1.2.2
+++ padfile_page/padfile_page.info	26 Apr 2010 16:04:03 -0000
@@ -2,15 +2,5 @@
 name = "PAD File Page"
 package = "PAD File"
 description = "Display one page per PAD File"
-dependencies[] = padfile
+dependencies = drupal6 padfile
 core = 6.x
-
-
-
-
-; Information added by drupal.org packaging script on 2010-03-01
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "padfile"
-datestamp = "1267402298"
-
Index: padfile_views/padfile_views.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/padfile/padfile_views/Attic/padfile_views.info,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 padfile_views.info
--- padfile_views/padfile_views.info	13 Mar 2010 08:58:25 -0000	1.1.2.3
+++ padfile_views/padfile_views.info	26 Apr 2010 16:04:03 -0000
@@ -2,16 +2,5 @@
 name = "PAD File Views Support"
 package = "PAD File"
 description = "Portable Application Description support for Views"
-dependencies[] = padfile
-dependencies[] = views
+dependencies = drupal6 padfile
 core = 6.x
-
-
-
-
-; Information added by drupal.org packaging script on 2010-03-01
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "padfile"
-datestamp = "1267402298"
-
