--- uc_migs.info	Tue Jan 20 09:26:36 1970
+++ uc_migs.info	Tue Jan 20 09:26:36 1970
@@ -2,10 +2,6 @@
 description = "Integrates MIGS 3rd party (bank hosted) payment gateway."
 dependencies[] = uc_payment
 package = Ubercart - payment
-core = 6.x
-; Information added by drupal.org packaging script on 2011-03-28
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "uc_migs"
-datestamp = "1301314551"
-
+core = 7.x
+; Modified by PeterMoulding.com for Drupal 7, Ubercart 3.0, and CBA.
+files[] = uc_migs.module
--- uc_migs.install	Tue Jan 20 09:26:36 1970
+++ uc_migs.install	Tue Jan 20 09:26:36 1970
@@ -1,13 +1,11 @@
 <?php
 
 /**
- * Implementation of hook_update_N()
- *
- * [#970228] Improved error messages for users (and detailed logging
- * to watchdog) require a rebuild of the theme registry.
+name = "MIGS"
+description = "Integrates MIGS 3rd party (bank hosted) payment gateway."
+dependencies[] = uc_payment
+package = Ubercart - payment
+core = 7.x
+; Modified by PeterMoulding.com for Drupal 7, Ubercart 3.0, and CBA.
+; Modified for a new install with no attempt at an upgrade.
  */
-function uc_migs_update_6000() {
-  $ret = array();
-  drupal_rebuild_theme_registry();
-  return $ret;
-}
--- uc_migs.module	Tue Jan 20 09:26:36 1970
+++ uc_migs.module	Tue Jan 20 09:26:36 1970
@@ -17,6 +17,22 @@
  * Thanks also to previous authors & contributors:
  *  T-Rex Art    - http://www.trexart.com.au
  *  Open Web Lab - http://www.openweblab.com
+core = 7.x
+; Modified by PeterMoulding.com for Drupal 7, Ubercart 3.0, and CBA.
+; Modified for a new install with no attempt at an upgrade.
+
+file_directory_path() has been removed: http://drupal.org/update/modules/6/7#file_directory_path
+Ubercart 3.0-beta4, 2011-7-25
+-----------------------------
+- API:
+    * Removed ability to disable order logging.
+    * Removed the ability to disable payment logging or tracking.
+    * Off-site payment methods can specify simpler redirect forms.
+    * Payment gateways are now only used and supported by uc_credit.
+    * Ordered product titles increased from 128 to 255 characters.
+    * The following hooks are now keyed by ID, though backwards compatibility is kept:
+      * hook_uc_payment_method()
+
  */
 
 /*******************************************************************************
@@ -32,7 +48,7 @@
     // overridable theme function for uc completion. But we do have
     // one for incomplete transactions!
     'uc_migs_order_incomplete' => array(
-      'arguments' => array(
+      'variables' => array(
         'response_message'   => '', // will be replaced with error description
         'response_receiptno' => '', // RRN from MIGS
         'order_info'         => '', // order ID from Ubercart
@@ -41,7 +57,7 @@
       'template'  => 'uc-migs-order-incomplete',
     ),
     'uc_migs_cc_logo' => array(
-      'arguments' => array(
+      'variables' => array(
         'filename' => '',
         'alttext'  => '',
       ),
@@ -84,8 +100,11 @@
 
 /**
  * Implementation of hook_payment_method().
+Ubercart 3.0-beta4, 2011-7-25
+    * The following hooks are now keyed by ID, though backwards compatibility is kept:
+      * hook_uc_payment_method()
  */
-function uc_migs_payment_method() {
+function uc_migs_uc_payment_method() {
   $path = base_path() . drupal_get_path('module', 'uc_migs');
   $title = variable_get('uc_migs_method_title', t('Credit card on a secure server.'));
   if ( variable_get('uc_migs_method_title_icons', TRUE) ) {
@@ -486,12 +505,18 @@
  * Helper function to return a named array of CC provider logos to display.
  *
  * Note that you need not override this; you can simply alter the
- * variables or replace the files in the default location.
+ * variables or replace the files in the default location.
+ Drupal 7:
+ file_directory_path() has been removed: http://drupal.org/update/modules/6/7#file_directory_path
+
  */
-function _uc_migs_cc_logos() {
+function _uc_migs_cc_logos() {
+  $files_path = variable_get('file_public_path', conf_path() . '/files');
   $cc_logos = array(
-    'MasterCard' => variable_get('uc_migs_logo_mastercard', file_directory_path() .'/uc_migs/mastercard.gif'),
-    'Visa' => variable_get('uc_migs_logo_visa', file_directory_path() .'/uc_migs/visa.gif'),
+//    'MasterCard' => variable_get('uc_migs_logo_mastercard', file_directory_path() .'/uc_migs/mastercard.gif'),
+    'MasterCard' => variable_get('uc_migs_logo_mastercard', $files_path .'/uc_migs/mastercard.gif'),
+//    'Visa' => variable_get('uc_migs_logo_visa', file_directory_path() .'/uc_migs/visa.gif'),
+    'Visa' => variable_get('uc_migs_logo_visa', $files_path .'/uc_migs/visa.gif'),
   ) ;
   return $cc_logos ;
 }
