Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/audio/contrib/attach/README.txt,v
retrieving revision 1.3
diff -u -p -r1.3 README.txt
--- README.txt	3 Aug 2007 02:41:13 -0000	1.3
+++ README.txt	27 Nov 2008 06:55:54 -0000
@@ -1,24 +1,18 @@
 ABOUT
-This module allows you to create and attach multiple audio nodes to any content type.
+This module provides additional CCK formaters for nodereference fields giving
+you a way to attach groups of audio nodes to nodes of any content type.
 Once attached, you may re-order the attachments and/or detach certain files.
 
 INSTALLATION
-After installing the audio.module go to admin/build/modules to turn on this module.
-You can configure which content types will allow audio attachments by navigating to admin/content/types.
+After enabling the Audio, CCK and Node Reference Modules, enable Audio Attach.
 
-By default a user can only attach audio files that they uploaded.
-Grant the permission, "attach any existing audio file" if you want them to be able to attach any audio file on the server.
-The access control page is found at: /admin/user/access
+You can now add a new node reference field and use "Attached audio" as the 
+display type.
 
 USAGE
-Create or edit a content type that has audio attachments enabled and you will see a field for attaching audio files.
-Here you will see previously attached files and you can re-order or remove them (this does not delete them from the site).
-You can either select an existing audio file to attach, or upload a new audio file.  Please note that uploading an audio file
-will create a new audio content type for that file.
-
-
-TODO
--use drag/drop ajax sorting
--use ajax upload
-
-
+Create or edit a content type that has audio attachments enabled and you will
+see a field for attaching audio files. Here you will see previously attached
+files and you can re-order or remove them (this does not delete them from the
+site). You can either select an existing audio file to attach, or upload a new
+audio file.  Please note that uploading an audio file will create a new audio
+content type for that file.
Index: audio_attach.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/audio/contrib/attach/audio_attach.install,v
retrieving revision 1.5
diff -u -p -r1.5 audio_attach.install
--- audio_attach.install	25 Nov 2008 23:39:32 -0000	1.5
+++ audio_attach.install	27 Nov 2008 06:55:54 -0000
@@ -58,8 +58,9 @@ function audio_attach_update_6000() {
   // Make sure they've enabled CCK
   if (!drupal_load('module', 'content') || !drupal_load('module', 'nodereference') || !function_exists('content_check_update')) {
     $ret['#abort'] = array('success' => FALSE, 'query' => t('Audio Attach now requires CCK be installed. Some updates are still pending.<br/>Please re-run the update script.'));
+    return $ret;
   }
-  if ($abort = content_check_update('fieldgroup')) {
+  if ($abort = content_check_update('audio_attach')) {
     return $abort;
   }
 
@@ -154,7 +155,7 @@ function audio_attach_update_6000() {
 
   // Now create the fields for each node type that audio_attach is enabled on.
   foreach (node_get_types() as $type) {
-    if (variable_get('audio_attach_'. $type, 0)) {
+    if (variable_get('audio_attach_'. $type->type, 0)) {
       $field['type_name'] = $type->type;
       content_field_instance_create($field);
     }
@@ -172,9 +173,9 @@ function audio_attach_update_6000() {
 
 
   // Remove the old variables.
-#  foreach (node_get_types() as $type) {
+  foreach (node_get_types() as $type) {
 #    variable_del('audio_attach_'. $type);
-#  }
+  }
 
   // And drop the old table.
 #  db_drop_table($ret, 'audio_attach');
